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 c117669 commit f7d0e35Copy full SHA for f7d0e35
sample/Archiving/web/index.php
@@ -12,6 +12,7 @@
12
13
use OpenTok\OpenTok;
14
use OpenTok\Role;
15
+use OpenTok\MediaMode;
16
17
// PHP CLI webserver compatibility, serving static files
18
$filename = __DIR__.preg_replace('#(\?.*)$#', '', $_SERVER['REQUEST_URI']);
@@ -45,7 +46,9 @@
45
46
// If a sessionId has already been created, retrieve it from the cache
47
$sessionId = $app->cache->getOrCreate('sessionId', array(), function() use ($app) {
48
// If the sessionId hasn't been created, create it now and store it
- $session = $app->opentok->createSession();
49
+ $session = $app->opentok->createSession(array(
50
+ 'mediaMode' => MediaMode::ROUTED
51
+ ));
52
return $session->getSessionId();
53
});
54
0 commit comments