@@ -597,7 +597,7 @@ def start_archive(
597
597
"POST to %r with params %r, headers %r, proxies %r" ,
598
598
self .endpoints .archive_url (),
599
599
json .dumps (payload ),
600
- self .json_headers (),
600
+ self .get_json_headers (),
601
601
self .proxies ,
602
602
)
603
603
@@ -643,7 +643,7 @@ def stop_archive(self, archive_id):
643
643
logger .debug (
644
644
"POST to %r with headers %r, proxies %r" ,
645
645
self .endpoints .archive_url (archive_id ) + "/stop" ,
646
- self .json_headers (),
646
+ self .get_json_headers (),
647
647
self .proxies ,
648
648
)
649
649
@@ -678,7 +678,7 @@ def delete_archive(self, archive_id):
678
678
logger .debug (
679
679
"DELETE to %r with headers %r, proxies %r" ,
680
680
self .endpoints .archive_url (archive_id ),
681
- self .json_headers (),
681
+ self .get_json_headers (),
682
682
self .proxies ,
683
683
)
684
684
@@ -708,7 +708,7 @@ def get_archive(self, archive_id):
708
708
logger .debug (
709
709
"GET to %r with headers %r, proxies %r" ,
710
710
self .endpoints .archive_url (archive_id ),
711
- self .json_headers (),
711
+ self .get_json_headers (),
712
712
self .proxies ,
713
713
)
714
714
@@ -754,7 +754,7 @@ def get_archives(self, offset=None, count=None, session_id=None):
754
754
logger .debug (
755
755
"GET to %r with headers %r, proxies %r" ,
756
756
endpoint ,
757
- self .json_headers (),
757
+ self .get_json_headers (),
758
758
self .proxies ,
759
759
)
760
760
@@ -905,7 +905,7 @@ def send_signal(self, session_id, payload, connection_id=None):
905
905
"POST to %r with params %r, headers %r, proxies %r" ,
906
906
self .endpoints .signaling_url (session_id , connection_id ),
907
907
json .dumps (payload ),
908
- self .json_headers (),
908
+ self .get_json_headers (),
909
909
self .proxies ,
910
910
)
911
911
@@ -960,7 +960,7 @@ def get_stream(self, session_id, stream_id):
960
960
logger .debug (
961
961
"GET to %r with headers %r, proxies %r" ,
962
962
endpoint ,
963
- self .json_headers (),
963
+ self .get_json_headers (),
964
964
self .proxies ,
965
965
)
966
966
@@ -997,7 +997,7 @@ def list_streams(self, session_id):
997
997
logger .debug (
998
998
"GET to %r with headers %r, proxies %r" ,
999
999
endpoint ,
1000
- self .json_headers (),
1000
+ self .get_json_headers (),
1001
1001
self .proxies ,
1002
1002
)
1003
1003
@@ -1035,7 +1035,7 @@ def force_disconnect(self, session_id, connection_id):
1035
1035
logger .debug (
1036
1036
"DELETE to %r with headers %r, proxies %r" ,
1037
1037
endpoint ,
1038
- self .json_headers (),
1038
+ self .get_json_headers (),
1039
1039
self .proxies ,
1040
1040
)
1041
1041
@@ -1095,7 +1095,7 @@ def set_archive_layout(self, archive_id, layout_type, stylesheet=None, screensha
1095
1095
"PUT to %r with params %r, headers %r, proxies %r" ,
1096
1096
endpoint ,
1097
1097
json .dumps (payload ),
1098
- self .json_headers (),
1098
+ self .get_json_headers (),
1099
1099
self .proxies ,
1100
1100
)
1101
1101
@@ -1224,7 +1224,7 @@ def dial(self, session_id, token, sip_uri, options=[]):
1224
1224
"POST to %r with params %r, headers %r, proxies %r" ,
1225
1225
endpoint ,
1226
1226
json .dumps (payload ),
1227
- self .json_headers (),
1227
+ self .get_json_headers (),
1228
1228
self .proxies ,
1229
1229
)
1230
1230
@@ -1278,7 +1278,7 @@ class names (Strings) to apply to the stream. For example:
1278
1278
"PUT to %r with params %r, headers %r, proxies %r" ,
1279
1279
endpoint ,
1280
1280
json .dumps (items_payload ),
1281
- self .json_headers (),
1281
+ self .get_json_headers (),
1282
1282
self .proxies ,
1283
1283
)
1284
1284
@@ -1313,6 +1313,10 @@ def start_broadcast(self, session_id, options, stream_mode=BroadcastStreamModes.
1313
1313
1314
1314
:param String session_id: The session ID of the OpenTok session you want to broadcast
1315
1315
1316
+ :param Boolean optional hasAudio: Whether the stream is broadcast with audio.
1317
+
1318
+ :param Boolean optional hasVideo: Whether the stream is broadcast with video.
1319
+
1316
1320
:param Dictionary options, with the following properties:
1317
1321
1318
1322
Dictionary 'layout' optional: Specify this to assign the initial layout type for the
@@ -1397,7 +1401,7 @@ def start_broadcast(self, session_id, options, stream_mode=BroadcastStreamModes.
1397
1401
"POST to %r with params %r, headers %r, proxies %r" ,
1398
1402
endpoint ,
1399
1403
json .dumps (payload ),
1400
- self .json_headers (),
1404
+ self .get_json_headers (),
1401
1405
self .proxies ,
1402
1406
)
1403
1407
@@ -1440,7 +1444,7 @@ def stop_broadcast(self, broadcast_id):
1440
1444
logger .debug (
1441
1445
"POST to %r with headers %r, proxies %r" ,
1442
1446
endpoint ,
1443
- self .json_headers (),
1447
+ self .get_json_headers (),
1444
1448
self .proxies ,
1445
1449
)
1446
1450
@@ -1580,7 +1584,7 @@ def get_broadcast(self, broadcast_id):
1580
1584
logger .debug (
1581
1585
"GET to %r with headers %r, proxies %r" ,
1582
1586
endpoint ,
1583
- self .json_headers (),
1587
+ self .get_json_headers (),
1584
1588
self .proxies ,
1585
1589
)
1586
1590
@@ -1637,7 +1641,7 @@ def set_broadcast_layout(self, broadcast_id, layout_type, stylesheet=None, scree
1637
1641
"PUT to %r with params %r, headers %r, proxies %r" ,
1638
1642
endpoint ,
1639
1643
json .dumps (payload ),
1640
- self .json_headers (),
1644
+ self .get_json_headers (),
1641
1645
self .proxies ,
1642
1646
)
1643
1647
0 commit comments