@@ -1644,8 +1644,7 @@ def __init__(
16441644 def mute_all (self ,
16451645 session_id : str ,
16461646 excludedStreamIds : Optional [List [str ]],
1647- active : bool = True ,
1648- options : dict = {}) -> requests .Response :
1647+ active : bool = True ) -> requests .Response :
16491648
16501649 """
16511650 Mutes all streams in an OpenTok session.
@@ -1659,11 +1658,9 @@ def mute_all(self,
16591658
16601659 :param active Whether streams published after the call, in addition to the current streams
16611660 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
16651661 """
16661662
1663+ options = {}
16671664 url = self .endpoints .get_mute_all_url (session_id )
16681665
16691666 try :
@@ -1691,23 +1688,20 @@ def mute_all(self,
16911688
16921689
16931690
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 :
16951692 """
16961693 Mutes a single stream in an OpenTok session.
16971694
16981695 :param session_id The session ID.
16991696
17001697 :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
17041698 """
17051699
17061700 try :
17071701 if stream_id :
17081702 url = self .endpoints .get_stream_url (session_id , stream_id ) + "/mute"
17091703
1710- response = requests .post (url , headers = self .get_headers (), data = json . dumps ( options ) )
1704+ response = requests .post (url , headers = self .get_headers ())
17111705
17121706 if response :
17131707 return response
0 commit comments