WebDevSimplified / Zoom-Clone-With-WebRTC

1.52k stars 865 forks source link

Black screen issue and browser compability. #22

Open rajgits opened 4 years ago

rajgits commented 4 years ago

Hi i hosted in aws server with STUN and TURN server its working fine on Chrome broser on windows but if we switch browser from different side its show blacksceen and not streaming.

ghost commented 4 years ago

lol, i have the same problem too

kaustubhai commented 4 years ago

Instead of navigator.getUserMedia, first, define a variable like: var getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; getUserMedia is a browser powered function, you need to define it for every different kind of browser.

After this, simply use getUserMedia instead of navigator.getUserMedia and it will become cross-browser compatible

pisgithub commented 3 years ago

Hi i hosted in aws server with STUN and TURN server its working fine on Chrome broser on windows but if we switch browser from different side its show blacksceen and not streaming.

Check for Console, You might have an error, for some reason one browser can access the web camera at the same time. When I accessed on Firefox while running Chrome I got the blank screen, but when I closed the Chrome and Refresh on Firefox it Worked like a Charm!