testing...

This commit is contained in:
Mahdi Dibaiee 2014-09-10 22:20:05 +04:30
parent a18c11746c
commit a13d9d2e55

View File

@ -38,13 +38,15 @@ $(function() {
} }
}); });
call.on('stream', function(str) { peer.on('call', function(c) {
window.stream = str; c.on('stream', function(str) {
if(!str.getVideoTracks().length) { window.stream = str;
$('.remote p').removeClass('hidden'); if(!str.getVideoTracks().length) {
} $('.remote p').removeClass('hidden');
$('.remote video').prop('src', window.URL.createObjectURL(str)); }
$('.remote video')[0].play(); $('.remote video').prop('src', window.URL.createObjectURL(str));
$('.remote video')[0].play();
});
}); });
con.on('open', function() { con.on('open', function() {
@ -144,8 +146,6 @@ $(function() {
$('.error').removeClass('hidden').find('p').text('An error occured: ' + err); $('.error').removeClass('hidden').find('p').text('An error occured: ' + err);
}); });
}); });
}); });
}); });