Created
June 26, 2014 20:42
-
-
Save opsb/d7c16e22df36368be190 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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