peer.on('stream', function (stream) {
console.log('peer on stream called');
console.log(stream);
this.video = document.getElementById("peerVideo");
this.video.srcObject = stream;
this.video.play();
})
return peer
}
Here I am getting the video stream from a remote machine.
I have logged and checked i am sure that i am getting a remote stream as the stream id at is source is same that i receive here.
this.video.srcObject = stream;
this line generates a -> error Uncaught (in promise) DOMException: The play() request was interrupted by a new load request.
I tried a lot but don't know how to solve this issue.
Thanks for help.