@@ -484,7 +484,8 @@ def start_archive(
484
484
output_mode = OutputModes .composed ,
485
485
stream_mode = StreamModes .auto ,
486
486
resolution = None ,
487
- layout = None
487
+ layout = None ,
488
+ multi_archive_tag = None
488
489
):
489
490
"""
490
491
Starts archiving an OpenTok session.
@@ -535,6 +536,14 @@ def start_archive(
535
536
StreamModes.manual to explicitly select streams to include in the the archive, using the
536
537
OpenTok.add_archive_stream() and OpenTok.remove_archive_stream() methods.
537
538
539
+ :param String multi_archive_tag (Optional): Set this to support recording multiple archives for the same
540
+ session simultaneously. Set this to a unique string for each simultaneous archive of an ongoing session.
541
+ You must also set this option when manually starting an archive that is automatically archived.
542
+ Note that the multiArchiveTag value is not included in the response for the methods to list archives and
543
+ retrieve archive information. If you do not specify a unique multi_archive_tag, you can only record one archive
544
+ at a time for a given session.
545
+ For more information, see simultaneous archives: https://tokbox.com/developer/guides/archiving/#simultaneous-archives.
546
+
538
547
:rtype: The Archive object, which includes properties defining the archive,
539
548
including the archive ID.
540
549
"""
@@ -559,7 +568,8 @@ def start_archive(
559
568
"hasVideo" : has_video ,
560
569
"outputMode" : output_mode .value ,
561
570
"resolution" : resolution ,
562
- "streamMode" : stream_mode .value
571
+ "streamMode" : stream_mode .value ,
572
+ "multiArchiveTag" : multi_archive_tag
563
573
}
564
574
565
575
if layout is not None :
@@ -1314,6 +1324,12 @@ def start_broadcast(self, session_id, options, stream_mode=BroadcastStreamModes.
1314
1324
String 'resolution' optional: The resolution of the broadcast, either "640x480"
1315
1325
(SD, the default) or "1280x720" (HD)
1316
1326
1327
+ String 'multiBroadcastTag' optional: Set this to support multiple broadcasts for the same session simultaneously.
1328
+ Set this to a unique string for each simultaneous broadcast of an ongoing session.
1329
+ Note that the multiBroadcastTag value is not included in the response for the methods to list live streaming
1330
+ broadcasts and get information about a live streaming broadcast.
1331
+ For more information, see https://tokbox.com/developer/guides/broadcast/live-streaming#simultaneous-broadcasts.
1332
+
1317
1333
:param BroadcastStreamModes stream_mode (Optional): Determines the broadcast stream handling mode.
1318
1334
Set this to BroadcastStreamModes.auto (the default) to have streams added automatically. Set this to
1319
1335
BroadcastStreamModes.manual to explicitly select streams to include in the the broadcast, using the
0 commit comments