Testing..

This commit is contained in:
Mahdi Dibaiee 2014-09-10 22:27:41 +04:30
parent 6db38141ee
commit ded78e428d

View File

@ -59,7 +59,7 @@ $(function() {
}
$('.remote video').prop('src', window.URL.createObjectURL(str));
$('.remote video')[0].play();
})
});
con.on('open', function() {
$('.connecting').addClass('hidden');
@ -136,14 +136,13 @@ $(function() {
peer.on('call', function(call) {
navigator.getUserMedia({audio: true, video: true}, function(stream) {
call.answer(stream);
if(!stream.getVideoTracks().length) {
$('.self p').removeClass('hidden');
}
$('.self video').prop('src', window.URL.createObjectURL(stream));
$('.self video')[0].play();
call.answer(stream);
call.on('stream', function(str) {
window.stream = str;