Skip to content

Commit 801a371

Browse files
committed
adding custom timeout information
1 parent e7dd4a6 commit 801a371

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.rst

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ OpenTok Python SDK
44

55
.. image:: https://travis-ci.org/opentok/Opentok-Python-SDK.svg
66
:target: https://travis-ci.org/opentok/Opentok-Python-SDK
7-
.. image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg
7+
.. image:: https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg
88
:target: CODE_OF_CONDUCT.md
99

1010
.. image:: https://assets.tokbox.com/img/vonage/Vonage_VideoAPI_black.svg
@@ -457,7 +457,7 @@ You can dynamically change the layout type of a live streaming broadcast.
457457
.. code:: python
458458
459459
# Valid values to 'layout_type' are: 'custom', 'horizontalPresentation',
460-
# 'pip' and 'verticalPresentation'
460+
# 'pip' and 'verticalPresentation'
461461
opentok.set_broadcast_layout('BROADCASTID', 'horizontalPresentation')
462462
463463
# if you specify a 'custom' layout type, set the stylesheet parameter:
@@ -470,6 +470,14 @@ You can dynamically change the layout type of a live streaming broadcast.
470470
For more information about OpenTok live streaming broadcasts, see the
471471
`Broadcast developer guide <https://tokbox.com/developer/guides/broadcast/>`_.
472472

473+
Configuring Timeout
474+
-------
475+
Timeout is passed in the OpenTok constructor:
476+
477+
```self.timeout = timeout```
478+
479+
The solution is to create an instance: opentok = OpenTok(...., timeout=value) and then the value can be changed later with opentok.timeout = value
480+
473481
Samples
474482
-------
475483

0 commit comments

Comments
 (0)