Skip to content

Instantly share code, notes, and snippets.

@opsb
Created June 26, 2014 20:42
Show Gist options
  • Select an option

  • Save opsb/d7c16e22df36368be190 to your computer and use it in GitHub Desktop.

Select an option

Save opsb/d7c16e22df36368be190 to your computer and use it in GitHub Desktop.
<html>
<head>
<script src='https://swww.tokbox.com/webrtc/v2.0/js/TB.min.js'></script>
<script>
var sessionId = "";
var apiKey = "";
var token = "";
var session = OT.initSession(sessionId);
OT.setLogLevel(OT.DEBUG);
self.session.on("sessionConnected", function(){
OT.initPublisher(apiKey, "publisher", {width:"100%", height:"100%", subscribeToAudio: false});
});
session.connect(apiKey, token);
</script>
</head>
<body>
<div id="publisher"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment