Skip to content

Commit 4426f48

Browse files
committed
Update Java Server SDK docs to have a relay mode by default.
1 parent 21e49e4 commit 4426f48

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,20 +82,20 @@ the `getSessionId()` method, is useful to get an identifier that can be saved to
8282
import com.opentok.Session;
8383
import com.opentok.SessionProperties;
8484

85-
// Just a plain Session
85+
// A session that attempts to stream media directly between clients:
8686
Session session = opentok.createSession();
8787

88-
// A session that attempts to use peer-to-peer streaming
88+
// A session that uses the OpenTok Media Router:
8989
Session session = opentok.createSession(new SessionProperties.Builder()
90-
.mediaMode(MediaMode.RELAYED)
90+
.mediaMode(MediaMode.ROUTED)
9191
.build());
9292

93-
// A Session with a location hint
93+
// A Session with a location hint:
9494
Session session = opentok.createSession(new SessionProperties.Builder()
9595
.location("12.34.56.78")
9696
.build());
9797

98-
// Store this sessionId in the database for later use
98+
// Store this sessionId in the database for later use:
9999
String sessionId = session.getSessionId();
100100
```
101101

0 commit comments

Comments
 (0)