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
Copy file name to clipboardExpand all lines: docs/docs/opentok.html
+20-10Lines changed: 20 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -63,6 +63,10 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
63
63
<trclass="field-odd field"><thclass="field-name">Variables:</th><tdclass="field-body"><ulclass="first last simple">
64
64
<li><strong>created_at</strong> – The time at which the archive was created, in milliseconds since the UNIX epoch.</li>
65
65
<li><strong>duration</strong> – The duration of the archive, in milliseconds.</li>
66
+
<li><strong>hasAudio</strong> – Boolean value set to true when the archive contains an audio track,
67
+
and set to false otherwise.</li>
68
+
<li><strong>hasVideo</strong> – Boolean value set to true when the archive contains a video track,
69
+
and set to false otherwise.</li>
66
70
<li><strong>id</strong> – The archive ID.</li>
67
71
<li><strong>name</strong> – The name of the archive. If no name was provided when the archive was created, this is set
68
72
to null.</li>
@@ -192,20 +196,20 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
192
196
<spanid="opentok-opentok-module"></span><h2>opentok.opentok module<aclass="headerlink" href="#module-opentok.opentok" title="Permalink to this headline">¶</a></h2>
193
197
<dlclass="class">
194
198
<dtid="opentok.opentok.MediaModes">
195
-
<emclass="property">class </em><ttclass="descclassname">opentok.opentok.</tt><ttclass="descname">MediaModes</tt><big>(</big><em>*keys</em>, <em>**kwargs</em><big>)</big><aclass="headerlink" href="#opentok.opentok.MediaModes" title="Permalink to this definition">¶</a></dt>
199
+
<emclass="property">class </em><ttclass="descclassname">opentok.opentok.</tt><ttclass="descname">MediaModes</tt><aclass="headerlink" href="#opentok.opentok.MediaModes" title="Permalink to this definition">¶</a></dt>
<p>List of valid settings for the mediaMode parameter of the OpenTok.createSession() method.</p>
198
202
<dlclass="attribute">
199
203
<dtid="opentok.opentok.MediaModes.relayed">
200
-
<ttclass="descname">relayed</tt><emclass="property"> = u'enabled'</em><aclass="headerlink" href="#opentok.opentok.MediaModes.relayed" title="Permalink to this definition">¶</a></dt>
204
+
<ttclass="descname">relayed</tt><emclass="property"> = None</em><aclass="headerlink" href="#opentok.opentok.MediaModes.relayed" title="Permalink to this definition">¶</a></dt>
201
205
<dd><p>The session will attempt to transmit streams directly between clients. If two clients
202
206
cannot send and receive each others’ streams, due to firewalls on the clients’ networks,
203
207
their streams will be relayed using the OpenTok TURN Server.</p>
204
208
</dd></dl>
205
209
206
210
<dlclass="attribute">
207
211
<dtid="opentok.opentok.MediaModes.routed">
208
-
<ttclass="descname">routed</tt><emclass="property"> = u'disabled'</em><aclass="headerlink" href="#opentok.opentok.MediaModes.routed" title="Permalink to this definition">¶</a></dt>
212
+
<ttclass="descname">routed</tt><emclass="property"> = None</em><aclass="headerlink" href="#opentok.opentok.MediaModes.routed" title="Permalink to this definition">¶</a></dt>
209
213
<dd><p>The session will transmit streams using the OpenTok Media Server.</p>
210
214
</dd></dl>
211
215
@@ -237,7 +241,7 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
237
241
238
242
<dlclass="method">
239
243
<dtid="opentok.opentok.OpenTok.create_session">
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>
244
+
<ttclass="descname">create_session</tt><big>(</big><em>location=None</em>, <em>media_mode=<MediaModes.relayed: u'enabled'></em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.create_session" title="Permalink to this definition">¶</a></dt>
241
245
<dd><p>Creates a new OpenTok session and returns the session ID, which uniquely identifies
242
246
the session.</p>
243
247
<p>For example, when using the OpenTok JavaScript library, use the session ID when calling the
@@ -315,7 +319,7 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
315
319
316
320
<dlclass="method">
317
321
<dtid="opentok.opentok.OpenTok.generate_token">
318
-
<ttclass="descname">generate_token</tt><big>(</big><em>session_id</em>, <em>role=u'publisher'</em>, <em>expire_time=None</em>, <em>data=None</em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.generate_token" title="Permalink to this definition">¶</a></dt>
322
+
<ttclass="descname">generate_token</tt><big>(</big><em>session_id</em>, <em>role=<Roles.publisher: u'publisher'></em>, <em>expire_time=None</em>, <em>data=None</em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.generate_token" title="Permalink to this definition">¶</a></dt>
@@ -408,7 +412,7 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
408
412
409
413
<dlclass="method">
410
414
<dtid="opentok.opentok.OpenTok.start_archive">
411
-
<ttclass="descname">start_archive</tt><big>(</big><em>session_id</em>, <em>**kwargs</em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.start_archive" title="Permalink to this definition">¶</a></dt>
415
+
<ttclass="descname">start_archive</tt><big>(</big><em>session_id</em>, <em>hasAudio=True</em>, <em>hasVideo=True</em>, <em>name=None</em><big>)</big><aclass="headerlink" href="#opentok.opentok.OpenTok.start_archive" title="Permalink to this definition">¶</a></dt>
412
416
<dd><p>Starts archiving an OpenTok 2.0 session.</p>
413
417
<p>Clients must be actively connected to the OpenTok session for you to successfully start
414
418
recording an archive.</p>
@@ -424,6 +428,12 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
424
428
<li><strong>name</strong> (<em>String</em>) – This is the name of the archive. You can use this name
425
429
to identify the archive. It is a property of the Archive object, and it is a property
426
430
of archive-related events in the OpenTok.js library.</li>
431
+
<li><strong>hasAudio</strong> (<em>Boolean</em>) – if set to True, an audio track will be inserted to the archive.
432
+
hasAudio is an optional parameter that is set to True by default. If you set both
433
+
hasAudio and hasVideo to False, the call to the start_archive() method results in
434
+
an error.</li>
435
+
<li><strong>hasVideo</strong> (<em>Boolean</em>) – if set to True, a video track will be inserted to the archive.
436
+
hasVideo is an optional parameter that is set to True by default.</li>
427
437
</ul>
428
438
</td>
429
439
</tr>
@@ -456,26 +466,26 @@ <h2>Submodules<a class="headerlink" href="#submodules" title="Permalink to this
456
466
457
467
<dlclass="class">
458
468
<dtid="opentok.opentok.Roles">
459
-
<emclass="property">class </em><ttclass="descclassname">opentok.opentok.</tt><ttclass="descname">Roles</tt><big>(</big><em>*keys</em>, <em>**kwargs</em><big>)</big><aclass="headerlink" href="#opentok.opentok.Roles" title="Permalink to this definition">¶</a></dt>
469
+
<emclass="property">class </em><ttclass="descclassname">opentok.opentok.</tt><ttclass="descname">Roles</tt><aclass="headerlink" href="#opentok.opentok.Roles" title="Permalink to this definition">¶</a></dt>
<ttclass="descname">moderator</tt><emclass="property"> = u'moderator'</em><aclass="headerlink" href="#opentok.opentok.Roles.moderator" title="Permalink to this definition">¶</a></dt>
474
+
<ttclass="descname">moderator</tt><emclass="property"> = None</em><aclass="headerlink" href="#opentok.opentok.Roles.moderator" title="Permalink to this definition">¶</a></dt>
465
475
<dd><p>In addition to the privileges granted to a publisher, in clients using the OpenTok.js 2.2
466
476
library, a moderator can call the <cite>forceUnpublish()</cite> and <cite>forceDisconnect()</cite> method of the
467
477
Session object.</p>
468
478
</dd></dl>
469
479
470
480
<dlclass="attribute">
471
481
<dtid="opentok.opentok.Roles.publisher">
472
-
<ttclass="descname">publisher</tt><emclass="property"> = u'publisher'</em><aclass="headerlink" href="#opentok.opentok.Roles.publisher" title="Permalink to this definition">¶</a></dt>
482
+
<ttclass="descname">publisher</tt><emclass="property"> = None</em><aclass="headerlink" href="#opentok.opentok.Roles.publisher" title="Permalink to this definition">¶</a></dt>
473
483
<dd><p>A publisher can publish streams, subscribe to streams, and signal</p>
474
484
</dd></dl>
475
485
476
486
<dlclass="attribute">
477
487
<dtid="opentok.opentok.Roles.subscriber">
478
-
<ttclass="descname">subscriber</tt><emclass="property"> = u'subscriber'</em><aclass="headerlink" href="#opentok.opentok.Roles.subscriber" title="Permalink to this definition">¶</a></dt>
488
+
<ttclass="descname">subscriber</tt><emclass="property"> = None</em><aclass="headerlink" href="#opentok.opentok.Roles.subscriber" title="Permalink to this definition">¶</a></dt>
479
489
<dd><p>A subscriber can only subscribe to streams.</p>
0 commit comments