Skip to content

Commit 9efbd0c

Browse files
committed
Docs corrections.
1 parent 2ccf166 commit 9efbd0c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.rst

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,11 @@ address, and ``p2p`` which is a boolean. This method returns a ``Session`` objec
6161

6262
.. code:: python
6363
64-
# Just a plain Session
64+
# Just a plain Session:
6565
session = opentok.create_session()
66-
# A p2p Session
67-
session = opentok.create_session(p2p=True)
66+
# A Session that attempts to send streams directly between clients (falling back
67+
# to use the OpenTok TURN server to relay streams if the clients cannot connect):
68+
session = opentok.create_session(mediaMode=MediaModes.relayed)
6869
# A Session with a location hint
6970
session = opentok.create_session(location=u'12.34.56.78')
7071

0 commit comments

Comments
 (0)