Skip to content

Commit d7a8f8a

Browse files
committed
Docs - new default setting for createSession()
1 parent 7089662 commit d7a8f8a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ List<Archive> archives = opentok.listArchives(50, 50);
183183

184184
# Samples
185185

186-
There are two sample applications included in this repository. To get going as fast as possible, clone the whole
186+
There are two sample applications included with the SDK. To get going as fast as possible, clone the whole
187187
repository and follow the Walkthroughs:
188188

189189
* [HelloWorld](sample/HelloWorld/README.md)
@@ -207,7 +207,7 @@ This project is tested on both OpenJDK and Oracle implementations.
207207
See the [Releases](https://github.com/opentok/opentok-java-sdk/releases) page for details
208208
about each release.
209209

210-
# Important changes in v2.2
210+
# Important changes in v2.2.1
211211

212212
This version of the SDK includes support for working with OpenTok 2.0 archives. (This API does not
213213
work with OpenTok 1.0 archives.)
@@ -220,6 +220,12 @@ The API_Config class has been removed. Store your OpenTok API key and API secret
220220
The `create_session()` method has been renamed `createSession()`. Also, the method has changed to
221221
take one parameter: a SessionProperties object. You now generate a SessionProperties object using a Builder pattern.
222222

223+
The default setting for the `createSession()` method is to create a session with the media mode set
224+
to relayed. In previous versions of the SDK, the default setting was to use the OpenTok Media Router
225+
(media mode set to routed). In a relayed session, clients will attempt to send streams directly between
226+
each other (peer-to-peer); if clients cannot connect due to firewall restrictions, the session uses the
227+
OpenTok TURN server to relay audio-video streams.
228+
223229
The `generate_token()` method has been renamed `generateToken()`. Also, the method has changed to
224230
take two parameters: the session ID and a TokenOptions object.
225231

0 commit comments

Comments
 (0)