pusher_webrtc
pusher_webrtc copied to clipboard
Failed to execute 'createObjectURL' on 'URL'
an error occured TypeError: Failed to execute 'createObjectURL' on 'URL': No function was found that matched the signature provided. at (index):128
You may try to change index.html to:
//document.getElementById("selfview").src = window.URL.createObjectURL(stream); document.getElementById("selfview").srcObject = stream;
But I still get problem in showing the video on both sides.
first create a MediaStream object
const mediaStream = new MediaStream(stream)
document.getElementById("view").srcObject = mediaStream