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
Use this method to get information on an OpenTok stream (or all streams in a session).
237
+
You can get information about a stream by calling the `get_stream(session_id, stream_id)` method of the `OpenTok` class.
238
238
239
-
You can get information about a stream by calling the `get_stream(session_id, stream_id)` method of the `OpenTok` class, or by calling the `get_stream(stream_id)` method on the `Session` class.
240
-
241
-
The method return a Stream object that contains information of an OpenTok stream:
239
+
The method returns a Stream object that contains information of an OpenTok stream:
242
240
243
241
* ``id``: The stream ID
244
242
* ``videoType``: "camera" or "screen"
@@ -259,6 +257,24 @@ The method return a Stream object that contains information of an OpenTok stream
259
257
print stream.name #stream name
260
258
print stream.layoutClassList #['full']
261
259
260
+
Also, you can get information about all the streams in a session by calling the `list_streams(session_id)` method of the `OpenTok` class.
261
+
262
+
The method returns a StreamList object that contains a list of all the streams
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.')
557
+
elifresponse.status_code==403:
558
+
raiseAuthError('You passed in an invalid OpenTok API key or JWT token.')
0 commit comments