Files
Testing/videocall1/MediaStreamRecorder/demos/opentok-stream-recorder.html
sean 0e8a8b3028
Some checks failed
deploy-testing / deploy (push) Has been cancelled
Initial testing snapshot
2026-11-17 16:15:01 -05:00

42 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<title>Stream Recording using OpenTokStreamRecorder</title>
<script src="https://www.webrtc-experiment.com/MediaStreamRecorder/OpentTokStreamRecorder.js">
</script>
</head>
<body>
<h1>
Stream Recording using <a href="https://github.com/streamproc/MediaStreamRecorder" target="_blank">OpenTokStreamRecorder</a>
</h1>
<p>
You must run this app on your server. Our example will be soon.
</p>
<script>
openTokRecorder = new OpenTokStreamRecorder({
style: 'blank',
remoteToken: '/openTok/default/getToken',
remoteApiKey: '/openTok/default/getApiKey',
remoteArchive: function(e) {
return '/openTok/default/getVideoURL/id/' + e.archives[0].archiveId
},
onstart: function() {
console.log('start');
},
onstop: function() {
console.log('stop');
},
ondataavailable: function(e) {
console.log(e.data);
}
});
openTokRecorder.start();
setTimeout(function() {
openTokRecorder.stop();
}, 5000);
</script>
</body>
</html>