RTCMultiConnection icon indicating copy to clipboard operation
RTCMultiConnection copied to clipboard

Black screen for local camera stream on iphone mobile safar 14

Open fmangat opened this issue 5 years ago • 5 comments

Hi am using library for almost 1 year.Yesterday the problem started with iphone devices . On investigation i came to know the apple release mobile safari 14 and right after that local video stream from iphone is not working and it shows black screen. I have tested and looks like there is access issue for camera. I also noticed that if i click on video icon in safari address bar twice video work perfectly after that...

To replicate problem go to

https://rtcmulticonnection.herokuapp.com/demos/video-conferencing.html

With iphone ios 14

Any idea what is actually causing that and whats the fix

fmangat avatar Nov 02 '20 13:11 fmangat

We are experiencing the same problem, I have reported it here #961

ossipoff avatar Nov 02 '20 15:11 ossipoff

I have the same problem.

rezashnia1234 avatar Nov 21 '20 15:11 rezashnia1234

me too

xujingzhou avatar Feb 08 '21 00:02 xujingzhou

the problem is in getRMCMediaElement function.

comment out

mediaElement.srcObject = stream;

this line and it will work. the reason might be is that you cant create more than 1 media element with local stream

fmangat avatar Feb 08 '21 00:02 fmangat

I found that setting the autoCreateMediaElement property to false on the connection object also works

fmangat avatar Feb 08 '21 00:02 fmangat