@@ -7,12 +7,53 @@ class Broadcast(object):
7
7
"""
8
8
Represents a live streaming broadcast.
9
9
10
+ :ivar id:
11
+ The broadcast ID.
12
+
13
+ :ivar session_id:
14
+ The session ID of the OpenTok session associated with this broadcast.
15
+
16
+ :ivar project_id:
17
+ Your OpenTok API key.
18
+
19
+ :ivar created_at:
20
+ The time at which the broadcast was created, in milliseconds since the UNIX epoch.
21
+
22
+ :ivar updated_at:
23
+ The time at which the broadcast was last updated, in milliseconds since the UNIX epoch.
24
+
25
+ :ivar resolution:
26
+ The resolution of the broadcast (either "640x480", "1280x720", "1920x1080", "480x640", "720x1280", or "1920x1080").
27
+
28
+ :ivar status:
29
+ The status of the broadcast.
30
+
31
+ :ivar broadcastUrls:
32
+ An object containing details about the HLS and RTMP broadcasts.
33
+
34
+ If you specified an HLS endpoint, the object includes an hls property, which is set to the URL for the HLS broadcast.
35
+ Note this HLS broadcast URL points to an index file, an .M3U8-formatted playlist that contains a list of URLs
36
+ to .ts media segment files (MPEG-2 transport stream files).
37
+ While the URLs of both the playlist index file and media segment files are provided as soon as the HTTP response
38
+ is returned, these URLs should not be accessed until 15 - 20 seconds later,
39
+ after the initiation of the HLS broadcast, due to the delay between the HLS broadcast and the live streams
40
+ in the OpenTok session.
41
+ See https://developer.apple.com/library/ios/technotes/tn2288/_index.html for more information about the playlist index
42
+ file and media segment files for HLS.
43
+
44
+ If you specified RTMP stream endpoints, the object includes an rtmp property.
45
+ This is an array of objects that include information on each of the RTMP streams.
46
+ Each of these objects has the following properties: id (the ID you assigned to the RTMP stream),
47
+ serverUrl (the server URL), streamName (the stream name), and status property (which is set to "connecting").
48
+ You can call the OpenTok REST method to check for status updates for the broadcast:
49
+ https://tokbox.com/developer/rest/#get_info_broadcast
50
+
10
51
:ivar streamMode:
11
52
Whether streams included in the broadcast are selected automatically
12
53
("auto", the default) or manually ("manual").
13
-
54
+
14
55
:ivar streams:
15
- A list of streams currently being broadcast . This is only set for a broadcast with
56
+ A list of streams currently being broadcasted . This is only set for a broadcast with
16
57
the status set to "started" and the stream_Mode set to "manual".
17
58
"""
18
59
0 commit comments