plyr icon indicating copy to clipboard operation
plyr copied to clipboard

player.play() doesn't work in iOS >= 14.5 (both Safari and Chrome)

Open limonte opened this issue 4 years ago • 10 comments

Expected behaviour

It's possible to programmatically start playing video:

<div
  id="player"
  data-plyr-provider="youtube" 
  data-plyr-embed-id="so2s-NZVXZA">
</div>
const player = new Plyr('#player');
setTimeout(() => {
  player.play()
}, 3000)

Actual behaviour

The video doesn't start playing after player.play(). It shows buffering progress bar and gets stuck there:

https://user-images.githubusercontent.com/6059356/116820419-b02e0600-ab7d-11eb-8048-2e1044badd8e.MP4

Steps to reproduce

Open https://limonte.github.io/plyr-sandbox/ in iOS. There's setTimeout() which starts video 3 seconds after page load. It works everywhere except iOS.

Environment

  • Browser: Safari and Chrome
  • Operating System: iOS/ipadOS 14.5
  • Version: latest

Link to where the bug is happening

https://limonte.github.io/plyr-sandbox/

limonte avatar May 02 '21 16:05 limonte

Upd: it seems that the issue appeared only in latest iOS/ipadOS 14.5. In the previous release (14.4.x) everything was working as expected.

limonte avatar May 02 '21 18:05 limonte

we have exactly the same problem ... starting by code doesn´t work (only with youtube .. vimeo for example works)

Tigrecito avatar May 20 '21 17:05 Tigrecito

Same problem here since latest iOS-Update. Any fixes in progress? :-)

Ninos avatar May 21 '21 15:05 Ninos

Still reproducible even after upgrading to iOS 14.6

limonte avatar May 30 '21 11:05 limonte

I encounter the same problem here since latest iOS-Update!

tomgiesbergen avatar Jun 04 '21 07:06 tomgiesbergen

Any news about that? :) Since iOS-update we cannot use buttons anymore to play videos... :/

Ninos avatar Jul 21 '21 07:07 Ninos

The issue is also happening in iOS 15

limonte avatar Sep 27 '21 12:09 limonte

I encounter the same problem

tomtang1122 avatar Oct 27 '21 02:10 tomtang1122

I'm having the same issue with a page with a playlist where the next track will need to be played programatically. Is there any update please? Thanks!

daverees4 avatar Nov 04 '21 10:11 daverees4

to all with this issue.. have you tested with/without low power mode? With vanilla js, I have experienced problems when trying to play or autoplay videos (even muted) in iOS, when using low power mode.

richi-coder avatar Jun 07 '24 03:06 richi-coder