testing...

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

View File

@ -38,7 +38,8 @@ $(function() {
} }
}); });
call.on('stream', function(str) { peer.on('call', function(c) {
c.on('stream', function(str) {
window.stream = str; window.stream = str;
if(!str.getVideoTracks().length) { if(!str.getVideoTracks().length) {
$('.remote p').removeClass('hidden'); $('.remote p').removeClass('hidden');
@ -46,6 +47,7 @@ $(function() {
$('.remote video').prop('src', window.URL.createObjectURL(str)); $('.remote video').prop('src', window.URL.createObjectURL(str));
$('.remote video')[0].play(); $('.remote video')[0].play();
}); });
});
con.on('open', function() { con.on('open', function() {
$('.connecting').addClass('hidden'); $('.connecting').addClass('hidden');
@ -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);
}); });
}); });
}); });
}); });