Created
September 8, 2011 23:33
-
-
Save kristjan/1205095 to your computer and use it in GitHub Desktop.
Minimal Tokbox recording demo
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
<!DOCTYPE html> | |
<head> | |
<title>Tokbox Demo</title> | |
<script type="text/javascript" | |
src="http://staging.tokbox.com/v0.91/js/TB.min.js"></script> | |
</head> | |
<body style="text-align: center;"> | |
<h1>Tokbox Demo</h1> | |
<div id="recorder_container"></div> | |
<div id="player_container"></div> | |
<script type="text/javascript"> | |
var API_KEY = 12345; | |
var TOKEN = 'moderator_token'; | |
var ARCHIVE = '0470ee33-63bc-4c64-902f-637a4936e727'; | |
var manager = TB.initRecorderManager(API_KEY); | |
var recorder = manager.displayRecorder(TOKEN, 'recorder_container'); | |
var player = manager.displayPlayer(ARCHIVE, TOKEN, 'player_container'); | |
recorder.addEventListener(TB.ARCHIVE_SAVED, function(data) { | |
player.loadArchive(data.archives[0].archiveId); | |
}); | |
</script> | |
</body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment