I’m using PlyrJS with vimeo and it works just fine on PC but not mobile.
When I change devices in chrome dev tools to phone there is an error “The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page” that I can’t solve.
Important: I’m not trying to autoplay the video, only play on click. My html looks like this:
<div class="plyr__video-embed">
<iframe src="https://player.vimeo.com/video/148751763" allow=""></iframe>
</div>
and the plyr-part script:
const players = Plyr.setup('.plyr__video-embed', {
controls: [],
ratio: '9:16',
autoplay: false
});
Can someone give me a clue on how to fix this?