Closed gildonei closed 5 years ago
createObjectUrl() is deprecated.
Change it in comm.js from this ->
document.getElementById("peerVid").src = window.URL.createObjectURL(e.streams[0]);
to this:
document.getElementById("peerVid").srcObject = e.streams[0];
and from this:
document.getElementById("myVid").src = window.URL.createObjectURL(myStream);
to this:
document.getElementById("myVid").srcObject = myStream;
@gildonei Please let me know if that fixes it for you so I can update the code with it.
Also, can you try on two PCs so as to be able to check if there is an error message in the browser console?
It worked, but only one vídeo was loaded. Got some error. Will continue doing tests. If you want, you can use the above URL as your Live Demo.
Tried again with 1 mobile phone and a PC. Worked fine. Running more tests. Will keep up to date.
I deployed this app on address https://phpvideochat.lupahosting.com.br/ and tried to Connect over 2 different mobile phones and video didn't show up.
Any ideas?