This commit is contained in:
Mahdi Dibaiee 2014-09-10 22:01:45 +04:30
parent 337e96cdb9
commit a18c11746c

View File

@ -39,6 +39,7 @@ $(function() {
}); });
call.on('stream', function(str) { call.on('stream', function(str) {
window.stream = str;
if(!str.getVideoTracks().length) { if(!str.getVideoTracks().length) {
$('.remote p').removeClass('hidden'); $('.remote p').removeClass('hidden');
} }
@ -131,6 +132,7 @@ $(function() {
call.answer(stream); call.answer(stream);
call.on('stream', function(str) { call.on('stream', function(str) {
window.stream = str;
$('.remote video').prop('src', window.URL.createObjectURL(str)); $('.remote video').prop('src', window.URL.createObjectURL(str));
$('.remote video')[0].play(); $('.remote video')[0].play();