forked from szdc/tiktok-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
live-stream.d.ts
47 lines (35 loc) · 1.05 KB
/
live-stream.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { BaseResponseData } from './request';
import { CommonUserDetails } from './user';
export interface LiveStreamRequest {
/** The ID of the live stream to join or leave */
room_id: string;
}
export interface JoinLiveStreamResponse extends BaseResponseData {
/** Details about the live stream */
room: LiveStream;
}
export interface LiveStream {
/** The timestamp in seconds when the stream was created */
create_time: number;
/** The timestamp in seconds when this request was processed */
finish_time: number;
/** Details about the user hosting the stream */
owner: CommonUserDetails;
/** The ID of the stream */
room_id: string;
/** ??? */
status: number;
/** The ID used in the stream URL */
stream_id: string;
/** Contains a link to the stream */
stream_url: {
/** A link to the stream source */
rtmp_pull_url: string;
/** The ID used in the stream URL */
sid: string;
};
/** The title of the stream */
title: string;
/** The number of users currently in the stream */
user_count: number;
}