t-mullen / video-stream-merger

Merge multiple video MediaStreams into one composite.
https://t-mullen.github.io/video-stream-merger/
MIT License
357 stars 81 forks source link

Black Screen on iOS browsers #84

Open istng opened 2 years ago

istng commented 2 years ago

Hi! Thanks for the amazing work on this library, it is super! However, my use case heavily involves iOS. I found this merge mentioning said bug, and linking to a webkit bug report that seems to be ongoing, even reported on iOS >15.

Ill be looking for some solution to this, but does anyone found anything that fixes it?

t-mullen commented 2 years ago

You could try sending the stream back to the same browser through an RTCPeerConnection.

It’s not ideal but should be a workaround until iOS Safari is fixed.

t-mullen commented 2 years ago

Routing through the MediaSource API may be another solution but I have not tried it.

istng commented 2 years ago

thanks, I'll try it with RTCPeerConnection and if it works share the results :)

istng commented 2 years ago

I ended up switching video elements with css and did not try RTC... but if I ever do, I'll try and remember to get back here.