-
Notifications
You must be signed in to change notification settings - Fork 180
/
BroadcastDetailsResponse.ts
102 lines (86 loc) · 1.92 KB
/
BroadcastDetailsResponse.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
import { StreamMode, Resolution } from '../../enums';
import { RTMPStream } from '../RTMPStream';
/**
* Represents HLS settings for a live streaming broadcast.
*/
export type HlsSettings = {
/**
* Whether to enable low-latency mode for the HLS stream.
*/
lowLatency?: boolean;
};
/**
* Represents the response containing details about a live streaming broadcast.
*/
export type BroadcastDetailsResponse = {
/**
* The unique ID for the broadcast.
*/
id: string;
/**
* The Vonage Video session ID associated with the broadcast.
*/
sessionId: string;
/**
* The unique tag for simultaneous broadcasts (if one was set).
*/
multiBroadcasTag?: string;
/**
* The Vonage Application UUID.
*/
applicationId: string;
/**
* The time the broadcast started, expressed in milliseconds since the Unix epoch (January 1, 1970, 00:00:00 UTC).
*/
createdAt: number;
/**
* The timestamp when the broadcast was last updated, expressed in milliseconds since the Unix epoch.
*/
updatedAt: number;
/**
* The maximum duration for the broadcast (if one was set), in seconds.
*/
maxDuration?: number;
/**
* The maximum bitrate for the stream.
*/
maxBitrate?: number;
/**
* An object containing details about the HLS and RTMP broadcasts.
*/
broadcastUrls: {
/**
* The URL for the HLS broadcast.
*/
hls?: string;
/**
* An array of RTMP streams.
*/
rtmp: RTMPStream[];
};
/**
* An object containing settings for HLS.
*/
settings?: {
/**
* HLS settings.
*/
hls?: HlsSettings;
};
/**
* The resolution of the broadcast, if set.
*/
resolution?: Resolution;
/**
* Indicates whether the broadcast has video.
*/
hasVideo: boolean;
/**
* Indicates whether the broadcast has audio.
*/
hasAudio: boolean;
/**
* The stream mode for the broadcast.
*/
streamMode: StreamMode;
};