We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3de5dbe commit c42ad4eCopy full SHA for c42ad4e
sample/Archiving/src/main/java/com/example/ArchivingServer.java
@@ -2,10 +2,7 @@
2
3
import static spark.Spark.*;
4
5
-import com.opentok.OpenTok;
6
-import com.opentok.Role;
7
-import com.opentok.TokenOptions;
8
-import com.opentok.Archive;
+import com.opentok.*;
9
import spark.*;
10
11
import java.util.Map;
@@ -30,7 +27,10 @@ public static void main(String[] args) throws OpenTokException {
30
27
31
28
opentok = new OpenTok(Integer.parseInt(apiKey), apiSecret);
32
29
33
- sessionId = opentok.createSession().getSessionId();
+ sessionId = opentok.createSession(new SessionProperties.Builder()
+ .mediaMode(MediaMode.ROUTED)
+ .build())
+ .getSessionId();
34
35
externalStaticFileLocation("./public");
36
0 commit comments