@@ -1644,8 +1644,7 @@ def __init__(
1644
1644
def mute_all (self ,
1645
1645
session_id : str ,
1646
1646
excludedStreamIds : Optional [List [str ]],
1647
- active : bool = True ,
1648
- options : dict = {}) -> requests .Response :
1647
+ active : bool = True ) -> requests .Response :
1649
1648
1650
1649
"""
1651
1650
Mutes all streams in an OpenTok session.
@@ -1659,11 +1658,9 @@ def mute_all(self,
1659
1658
1660
1659
:param active Whether streams published after the call, in addition to the current streams
1661
1660
in the session, should be muted (True) or not (False).
1662
-
1663
- :param options is an empty dictonary representing the payload of the request,
1664
- whose contents will get populated inside the function
1665
1661
"""
1666
1662
1663
+ options = {}
1667
1664
url = self .endpoints .get_mute_all_url (session_id )
1668
1665
1669
1666
try :
@@ -1691,23 +1688,20 @@ def mute_all(self,
1691
1688
1692
1689
1693
1690
1694
- def mute_stream (self , session_id : str , stream_id : str , options : dict = {} ) -> requests .Response :
1691
+ def mute_stream (self , session_id : str , stream_id : str ) -> requests .Response :
1695
1692
"""
1696
1693
Mutes a single stream in an OpenTok session.
1697
1694
1698
1695
:param session_id The session ID.
1699
1696
1700
1697
:param stream_id The stream iD.
1701
-
1702
- :param options is an empty dictonary representing the payload of the request,
1703
- whose contents will get populated inside the function
1704
1698
"""
1705
1699
1706
1700
try :
1707
1701
if stream_id :
1708
1702
url = self .endpoints .get_stream_url (session_id , stream_id ) + "/mute"
1709
1703
1710
- response = requests .post (url , headers = self .get_headers (), data = json . dumps ( options ) )
1704
+ response = requests .post (url , headers = self .get_headers ())
1711
1705
1712
1706
if response :
1713
1707
return response
0 commit comments