You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raiseGetStreamError("Invalid request. This response may indicate that data in your request data is invalid JSON. Or it may indicate that you do not pass in a session ID or you passed in an invalid stream ID.")
1665
+
elifresponse.status_code==403:
1666
+
raiseAuthError("Failed to mute, invalid credentials.")
1667
+
elifresponse.status_code==404:
1668
+
raiseNotFoundError("The session or a stream is not found.")
1669
+
exceptExceptionase:
1670
+
raiseOpenTokException(
1671
+
("There was an error thrown by the OpenTok SDK, please check that your session_id {0} and excludedStreamIds (if exists) {1} are valid").format(
raiseGetStreamError("Invalid request. This response may indicate that data in your request data is invalid JSON. Or it may indicate that you do not pass in a session ID or you passed in an invalid stream ID.")
1699
+
elifresponse.status_code==403:
1700
+
raiseAuthError("Failed to mute, invalid credentials.")
1701
+
elifresponse.status_code==404:
1702
+
raiseNotFoundError("The session or a stream is not found.")
1703
+
exceptExceptionase:
1704
+
raiseOpenTokException(
1705
+
("There was an error thrown by the OpenTok SDK, please check that your session_id {0} is valid").format(
raiseGetStreamError("Invalid request. This response may indicate that data in your request data is invalid JSON. Or it may indicate that you do not pass in a session ID or you passed in an invalid stream ID.")
1728
+
elifresponse.status_code==403:
1729
+
raiseAuthError("Failed to mute, invalid credentials.")
1730
+
elifresponse.status_code==404:
1731
+
raiseNotFoundError("Mute not found")
1732
+
exceptExceptionase:
1733
+
raiseOpenTokException(
1734
+
("There was an error thrown by the OpenTok SDK, please check that your session_id {0} and stream_id {1} are valid").format(
raiseDTMFError("One of the properties digits, sessionId or connectionId is invalid.")
1768
+
elifresponse.status_code==403:
1769
+
raiseAuthError("Failed to create session, invalid credentials. Please check your OpenTok API Key or JSON web token")
1770
+
elifresponse.status_code==404:
1771
+
raiseNotFoundError("The session does not exists or the client specified by the connection_id is not connected to the session")
1772
+
exceptExceptionase:
1773
+
raiseOpenTokException(
1774
+
(f"There was an error thrown by the OpenTok SDK, please check that your session_id: {session_id}, connection_id (if exists): {connection_id} and digits: {digits} are valid"))
1620
1775
1621
1776
classOpenTok(Client):
1622
1777
def__init__(
@@ -1646,15 +1801,11 @@ def mute_all(self,
1646
1801
1647
1802
"""
1648
1803
Mutes all streams in an OpenTok session.
1649
-
1650
1804
You can include an optional list of streams IDs to exclude from being muted.
1651
-
1652
1805
In addition to existing streams, any streams that are published after the call to
1653
1806
this method are published with audio muted. You can remove the mute state of a session
1654
1807
by calling the OpenTok.disableForceMute() method.
1655
-
1656
1808
:param session_id The session ID
1657
-
1658
1809
:param excludedStreamIds A list of stream IDs for streams that should not be muted.
1659
1810
This is an optional property. If you omit this property, all streams in the session will be muted.
raiseNotFoundError("The session does not exists or the client specified by the connection_id is not connected to the session")
1784
1927
exceptExceptionase:
1785
1928
raiseOpenTokException(
1786
-
(f"There was an error thrown by the OpenTok SDK, please check that your session_id: {session_id}, connection_id (if exists): {connection_id} and digits: {digits} are valid"))
1929
+
(f"There was an error thrown by the OpenTok SDK, please check that your session_id: {session_id}, connection_id (if exists): {connection_id} and digits: {digits} are valid"))
0 commit comments