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
<imgsrc="https://assets.tokbox.com/img/vonage/Vonage_VideoAPI_black.svg"height="48px"alt="Tokbox is now known as Vonage" />
5
7
6
8
The OpenTok Java SDK lets you generate
7
9
[sessions](https://tokbox.com/developer/guides/create-session/) and
@@ -78,9 +80,9 @@ opentok.close();
78
80
To create an OpenTok Session, use the `OpenTok` instance’s `createSession(SessionProperties properties)`
79
81
method. The `properties` parameter is optional and it is used to specify two things:
80
82
81
-
* Whether the session uses the OpenTok Media Router
82
-
* A location hint for the OpenTok server.
83
-
* Whether the session is automatically archived.
83
+
- Whether the session uses the OpenTok Media Router
84
+
- A location hint for the OpenTok server.
85
+
- Whether the session is automatically archived.
84
86
85
87
An instance can be initialized using the `com.opentok.SessionProperties.Builder` class.
86
88
The `sessionId` property of the returned `com.opentok.Session` instance, which you can read using
@@ -199,10 +201,10 @@ The `Archive.OutputMode.COMPOSED` option is the default value for `outputMode`.
199
201
You can only specify the `resolution` for composed archives using the `ArchiveProperties` builder. If you set the `resolution` property and also set the `outputMode` property to `Archive.OutputMode.INDIVIDUAL`, the method will throw an `InvalidArgumentException`.
200
202
201
203
The accepted values for `resolution` are:
204
+
202
205
-`"640x480"` (SD, the default)
203
206
-`"1280x720"` (HD)
204
-
> Please note that setting any other value for the `resolution` property will result in an exception.
205
-
207
+
> Please note that setting any other value for the `resolution` property will result in an exception.
You can also fetch the list of archives for a specific session ID , and optionally
254
+
255
+
You can also fetch the list of archives for a specific session ID , and optionally
253
256
use the offset and count parameters as described above.
254
257
255
258
```java
@@ -268,7 +271,7 @@ into the `archiveMode()` method of the `SessionProperties.Builder` object you us
268
271
`sessionProperties` parameter passed into the `OpenTok.createSession()` method (see "Creating
269
272
Sessions," above).
270
273
271
-
For composed archives, you can dynamically set the archive layout (while the archive is being recorded) using the `OpenTok.setArchiveLayout(String archiveId, ArchiveProperties properties)`
274
+
For composed archives, you can dynamically set the archive layout (while the archive is being recorded) using the `OpenTok.setArchiveLayout(String archiveId, ArchiveProperties properties)`
272
275
method. See [Customizing the video layout for composed
273
276
archives](https://tokbox.com/developer/guides/archiving/layout-control.html) for more information. Use the `ArchiveProperties` builder as follows:
274
277
@@ -321,7 +324,7 @@ For more information on archiving, see the
321
324
### Disconnecting Clients
322
325
323
326
Your application server can disconnect a client from an OpenTok session by calling the `forceDisconnect(sessionId, connectionId)`
324
-
method of the `com.opentok.OpenTok` instance.
327
+
method of the `com.opentok.OpenTok` instance.
325
328
326
329
```java
327
330
opentok.forceDisconnect(sessionId, connectionId);
@@ -335,43 +338,42 @@ For more information on the force disconnect functionality and exception codes,
335
338
336
339
You can send signals to all the connections in a session or to a specific connection:
0 commit comments