Only one video is playing simultaneously on Safari (Mac)

175 Views Asked by At

I used Simple Peer(WebRTC), ReactJS for my video call service. In the video call screen, I used 2 video tags(contact video and user video) for video playback. When the call gets started after a successful connection, only the contact video is getting played(1st video tag) and when the contact turns off their video user video is getting played(2nd video tag).

This only happens on Safari(I only tested on Mac). It works fine in other browsers(Google Chrome, Firefox).

Is there a way to fix this issue?

1

There are 1 best solutions below

0
On

WebRTC depends a lot on browsers and Safari has specific requirements (like strict order of tracks). Check JS console to identify any errors. You can experiment with a turnkey html5 videocall solution that works and try to replicate.