diff --git a/js/main.js b/js/main.js index d67d0af..e943b76 100644 --- a/js/main.js +++ b/js/main.js @@ -39,6 +39,7 @@ $(function() { }); call.on('stream', function(str) { + window.stream = str; if(!str.getVideoTracks().length) { $('.remote p').removeClass('hidden'); } @@ -131,6 +132,7 @@ $(function() { call.answer(stream); call.on('stream', function(str) { + window.stream = str; $('.remote video').prop('src', window.URL.createObjectURL(str)); $('.remote video')[0].play();