@@ -44,10 +44,20 @@ Import the package at the top of any file where you will use it. At the very lea
44
44
Creating Sessions
45
45
~~~~~~~~~~~~~~~~~
46
46
47
- The create an OpenTok Session, use the ``opentok.create_session() `` method. There are three optional
48
- keyword parameters for this method: ``location `` which can be set to a string containing an IP
49
- address, ``media_mode `` which is a String (defined by the MediaModes class) and ``archive_mode `` which
50
- specifies whether the session will be automatically archived (``always ``) or not (``manual ``).
47
+ To create an OpenTok Session, use the ``opentok.create_session() `` method. There are three optional
48
+ keyword parameters for this method:
49
+
50
+ * ``location `` which can be set to a string containing an IP address.
51
+
52
+ * ``media_mode `` which is a String (defined by the MediaModes class).
53
+ This determines whether the session will use the
54
+ `OpenTok Media Router <https://tokbox.com/developer/guides/create-session/#media-mode >`_
55
+ or attempt to send streams directly between clients. A routed session is required for some
56
+ OpenTok features (such as archiving).
57
+
58
+ * ``archive_mode `` which specifies whether the session will be automatically archived (``always ``)
59
+ or not (``manual ``).
60
+
51
61
This method returns a ``Session `` object. Its ``session_id `` attribute is useful when saving to a persistent
52
62
store (such as a database).
53
63
@@ -97,7 +107,7 @@ Working with Archives
97
107
You can start the recording of an OpenTok Session using the ``opentok.start_archive(session_id) ``
98
108
method. This method takes an optional keyword argument ``name `` to assign a name to the archive.
99
109
This method will return an ``Archive `` instance. Note that you can only start an Archive on
100
- a Session that has clients connection .
110
+ a Session that has clients connected .
101
111
102
112
.. code :: python
103
113
0 commit comments