Skip to content

Commit 93db79a

Browse files
committed
added example of "outputs" dict to start_broadcast docstring
1 parent 6db9671 commit 93db79a

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

opentok/opentok.py

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,24 @@ def start_broadcast(self, session_id, options, stream_mode=BroadcastStreamModes.
13121312
each RTMP stream, specify 'serverUrl' (the RTMP server URL), 'streamName' (the stream
13131313
name, such as the YouTube Live stream name or the Facebook stream key), and
13141314
(optionally) 'id' (a unique ID for the stream). You can optionally specify lowLatency or
1315-
DVR mode, but these options are mutually exclusive.
1315+
DVR mode, but these options are mutually exclusive. For example:
1316+
1317+
'outputs': {
1318+
'hls': {
1319+
'lowLatency': True,
1320+
'dvr': False
1321+
},
1322+
'rtmp': [
1323+
{
1324+
'id': 'foo',
1325+
'serverUrl': 'rtmp://myfooserver/myfooapp',
1326+
'streamName': 'myfoostream'
1327+
}, {
1328+
'id': 'bar',
1329+
'serverUrl': 'rtmp://mybarserver/mybarapp',
1330+
'streamName': 'mybarstream'
1331+
}]
1332+
}
13161333
13171334
String 'resolution' optional: The resolution of the broadcast, either "640x480"
13181335
(SD, the default) or "1280x720" (HD)

0 commit comments

Comments
 (0)