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
<p>Add the <ttclass="docutils literal"><spanclass="pre">opentok</span></tt> package as a dependency in your project. The most common way is to add it to your
address, and <ttclass="docutils literal"><spanclass="pre">media_mode</span></tt> which is a String (defined by the MediaModes class). This method returns
87
86
a <ttclass="docutils literal"><spanclass="pre">Session</span></tt> object. Its <ttclass="docutils literal"><spanclass="pre">session_id</span></tt> attribute is useful when saving to a persistent store (such
88
87
as a database).</p>
89
-
<divclass="code python highlight-python"><divclass="highlight"><pre><spanclass="c"># Just a plain Session:</span>
<spanclass="c"># A Session that attempts to send streams directly between clients (falling back</span>
88
+
<divclass="code python highlight-python"><divclass="highlight"><pre><spanclass="c"># Create a session that attempts to send streams directly between clients (falling back</span>
92
89
<spanclass="c"># to use the OpenTok TURN server to relay streams if the clients cannot connect):</span>
<li><strong>url</strong> – The download URL of the available MP4 file. This is only set for an archive with the status set to
@@ -235,7 +237,7 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
235
237
236
238
<dlclass="method">
237
239
<dtid="opentok.opentok.OpenTok.create_session">
238
-
<ttclass="descname">create_session</tt><big>(</big><em>location=None</em>, <em>media_mode=u'disabled'</em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.create_session" title="Permalink to this definition">¶</a></dt>
240
+
<ttclass="descname">create_session</tt><big>(</big><em>location=None</em>, <em>media_mode=u'enabled'</em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.create_session" title="Permalink to this definition">¶</a></dt>
239
241
<dd><p>Creates a new OpenTok session and returns the session ID, which uniquely identifies
240
242
the session.</p>
241
243
<p>For example, when using the OpenTok JavaScript library, use the session ID when calling the
@@ -414,7 +416,8 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
414
416
<p>Clients must be actively connected to the OpenTok session for you to successfully start
415
417
recording an archive.</p>
416
418
<p>You can only record one archive at a time for a given session. You can only record archives
417
-
of OpenTok server-enabled sessions; you cannot archive peer-to-peer sessions.</p>
419
+
of sessions that use the OpenTok Media Router (sessions witht the media mode set to routed);
420
+
you cannot archive sessions witht the media mode set to relayed.</p>
0 commit comments