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
<divclass="block">Creates an OpenTokSDK object.</div>
128
+
<divclass="block">Creates an OpenTok object.</div>
129
129
</td>
130
130
</tr>
131
131
<trclass="rowColor">
@@ -247,7 +247,7 @@ <h3>Constructor Detail</h3>
247
247
<h4>OpenTok</h4>
248
248
<pre>public OpenTok(int apiKey,
249
249
java.lang.String apiSecret)</pre>
250
-
<divclass="block">Creates an OpenTokSDK object.</div>
250
+
<divclass="block">Creates an OpenTok object.</div>
251
251
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>apiKey</code> - Your OpenTok API key. (See the <ahref="https://dashboard.tokbox.com">OpenTok
252
252
dashboard</a> page.)</dd><dd><code>apiSecret</code> - Your OpenTok API secret. (See the <ahref="https://dashboard.tokbox.com">OpenTok dashboard</a>
253
253
page)</dd></dl>
@@ -295,7 +295,7 @@ <h4>generateToken</h4>
295
295
public static void main(String argv[]) throws OpenTokException {
296
296
int API_KEY = 0; // Replace with your OpenTok API key (see http://dashboard.tokbox.com).
297
297
String API_SECRET = ""; // Replace with your OpenTok API secret.
298
-
OpenTokSDK sdk = new OpenTokSDK(API_KEY, API_SECRET);
298
+
OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
299
299
300
300
//Generate a basic session. Or you could use an existing session ID.
OT.initSession()</a> method (to initialize an OpenTok session).
389
389
<p>
@@ -399,15 +399,15 @@ <h4>createSession</h4>
399
399
The following code creates a peer-to-peer session:
400
400
401
401
<pre>
402
-
import com.opentok.OpenTokSDK;
402
+
import com.opentok.OpenTok;
403
403
import com.opentok.Session;
404
404
import com.opentok.SessionProperties;
405
405
406
406
class Test {
407
407
public static void main(String argv[]) throws OpenTokException {
408
408
int API_KEY = 0; // Replace with your OpenTok API key.
409
409
String API_SECRET = ""; // Replace with your OpenTok API secret.
410
-
OpenTokSDK sdk = new OpenTokSDK(API_KEY, API_SECRET);
410
+
OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
411
411
412
412
SessionProperties sp = new SessionProperties().Builder().p2p(true).build();
413
413
@@ -428,9 +428,8 @@ <h4>createSession</h4>
428
428
429
429
<li>A location hint for the location of the OpenTok server to use for the session.</li>
430
430
</ul></dd>
431
-
<dt><spanclass="strong">Returns:</span></dt><dd>A session ID for the new session. For example, when using the OpenTok JavaScript library, use this session ID
432
-
in JavaScript on the page that you serve to the client. The JavaScript will use this value when calling the
433
-
<code>connect()</code> method of the Session object (to connect a user to an OpenTok session).</dd>
431
+
<dt><spanclass="strong">Returns:</span></dt><dd>A session ID for the new session. For example, when using the OpenTok.js library, use
432
+
this session ID when calling the <code>OT.initSession()</code> method.</dd>
434
433
<dt><spanclass="strong">Throws:</span></dt>
435
434
<dd><code><ahref="../../com/opentok/exception/OpenTokException.html" title="class in com.opentok.exception">OpenTokException</a></code></dd></dl>
436
435
</li>
@@ -455,14 +454,14 @@ <h4>createSession</h4>
455
454
The following example creates a session that uses the default settings:
456
455
457
456
<pre>
458
-
import com.opentok.OpenTokSDK;
457
+
import com.opentok.OpenTok;
459
458
import com.opentok.SessionProperties;
460
459
461
460
class Test {
462
461
public static void main(String argv[]) throws OpenTokException {
463
462
int API_KEY = 0; // Replace with your OpenTok API key.
464
463
String API_SECRET = ""; // Replace with your OpenTok API secret.
465
-
OpenTokSDK sdk = new OpenTokSDK(API_KEY, API_SECRET);
464
+
OpenTok sdk = new OpenTok(API_KEY, API_SECRET);
466
465
467
466
String sessionId = sdk.createSession();
468
467
System.out.println(sessionId);
@@ -516,8 +515,10 @@ <h4>listArchives</h4>
516
515
throws <ahref="../../com/opentok/exception/OpenTokException.html" title="class in com.opentok.exception">OpenTokException</a></pre>
517
516
<divclass="block">Returns a List of <ahref="../../com/opentok/Archive.html" title="class in com.opentok"><code>Archive</code></a> objects, representing archives that are both
518
517
both completed and in-progress, for your API key.</div>
519
-
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>offset</code> - The index offset of the first archive. 0 is offset of the most recently STARTED archive.
520
-
1 is the offset of the archive that STARTED prior to the most recent archive.</dd><dd><code>count</code> - The number of archives to be returned. The maximum number of archives returned is 1000.</dd>
518
+
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>offset</code> - The index offset of the first archive. 0 is offset of the most recently started
519
+
archive.
520
+
1 is the offset of the archive that started prior to the most recent archive.</dd><dd><code>count</code> - The number of archives to be returned. The maximum number of archives returned
521
+
is 1000.</dd>
521
522
<dt><spanclass="strong">Returns:</span></dt><dd>A List of <ahref="../../com/opentok/Archive.html" title="class in com.opentok"><code>Archive</code></a> objects.</dd>
522
523
<dt><spanclass="strong">Throws:</span></dt>
523
524
<dd><code><ahref="../../com/opentok/exception/OpenTokException.html" title="class in com.opentok.exception">OpenTokException</a></code></dd></dl>
@@ -574,9 +575,9 @@ <h4>deleteArchive</h4>
574
575
throws <ahref="../../com/opentok/exception/OpenTokException.html" title="class in com.opentok.exception">OpenTokException</a></pre>
575
576
<divclass="block">Deletes an OpenTok archive.
576
577
<p>
577
-
You can only delete an archive which has a status of "AVAILABLE" or "UPLOADED". Deleting an archive
578
-
removes its record from the list of archives. For an "AVAILABLE" archive, it also removes the archive
579
-
file, making it unavailable for download.</div>
578
+
You can only delete an archive which has a status of "available" or "uploaded". Deleting an
579
+
archive removes its record from the list of archives. For an "available" archive, it also
580
+
removes the archive file, making it unavailable for download.</div>
580
581
<dl><dt><spanclass="strong">Parameters:</span></dt><dd><code>archiveId</code> - The archive ID of the archive you want to delete.</dd>
581
582
<dt><spanclass="strong">Throws:</span></dt>
582
583
<dd><code><ahref="../../com/opentok/exception/OpenTokException.html" title="class in com.opentok.exception">OpenTokException</a></code></dd></dl>
<pre>public static final <ahref="../../com/opentok/Role.html" title="enum in com.opentok">Role</a> PUBLISHER</pre>
222
222
<divclass="block">A publisher can publish streams, subscribe to streams, and signal. (This is the default
223
-
value if you do not set a roll by calling the <ahref="../../com/opentok/TokenOptions.Builder.html#role(com.opentok.Role)"><code>TokenOptions.Builder.role(Role role)</code></a>
223
+
value if you do not set a role by calling the <ahref="../../com/opentok/TokenOptions.Builder.html#role(com.opentok.Role)"><code>TokenOptions.Builder.role(Role role)</code></a>
0 commit comments