ruby on rails - Open Tok plugin conflicts with firefox -
i'm using opentok plugin making video sessions in ror app. unfortunately not working in firefox-firefox browser. if peers using firefox, not working. i'm new this. problem?
make sure firefox version date , users have latest version of firefox. webrtc not supported in older firefox versions. once have latest firefox version, test code group video chat in multiple tabs/browsers/computer (you can sessionid/token credentials dashboard account page):
...
<body> <script src='//static.opentok.com/webrtc/v2.2/js/opentok.min.js'></script> <script> var apikey = "your key"; var sessionid = "your session id"; var token = "your token"; var session = ot.initsession(apikey, sessionid); session.connect( token, function(err){ if(!err){ session.publish(); } }); session.on("streamcreated", function(event){ session.subscribe( event.stream ); }); </script>
...
Comments
Post a Comment