localStreams and remoteStreams both are of type “MediaStreamList”. localStreams contains “LocalMediaStream” objects
However, remoteStreams contains “MediaStream” objects
Why so difference?
When I use “localStreams” – it works for me:
localVideo.src = URL.createObjectURL(localStreams[0]);
But if I try to use “remoteStreams” – it doesn’t work:
remoteVideo.src = URL.createObjectURL(remoteStreams[0])
Blobs for “remoteStreams” and “localStreams” are looking same in style.
Why “remoteStreams” doesn’t work for me (in “onaddstream” event or directly) ???
remoteVideo.src = URL.createObjectURL(secondPeer.remoteStreams[0])
"blob:http%3A//localhost%3A8082/78e8821f-90b8-4703-b56d-918ec505e5bf"
Live Demo:--- https://muazkh.appspot.com/?page=WebRTC