Subscriber video element auto play issue

I’ve been experiencing a strange issue and it’s mostly on apple devices and safari

When a live stream is started the subscriber video element doesn’t always auto play so it’s stuck just on a black screen until the user clicks

I’ve added a sort of trap for it to check the video elements and show a message to click a button to force it to play

Why is it doing this? And is there any solution because it’s rather irritating?

I’m not sure this is openvidu as such but maybe some sort of browser bug or is it similar to how sounds won’t play on apple devices without a human pressing play?

This is related to autoplay policies of Safari browser. Look for “autoplay” keyword in this forum and you will find some entrie talking about it. This FAQ also discuss it: Better way to handle iOS Safari autoplay issues?