sampotts/plyr

vimeo video does not play on iOS < 10

Open

#938 opened on May 2, 2018

View on GitHub
 (5 comments) (0 reactions) (0 assignees)JavaScript (25,318 stars) (2,856 forks)batch import
BugHelp Wanted

Description

Expected behaviour

video plays on click

Actual behaviour

video does not play on click, error in console

Environment

  • Browser : Safari iOS
  • Version : ?
  • Operating System : iOS 8.4 & iOS 9.3
  • plyr.js Version : 3.2.4

Steps to reproduce

  • visit https://plyr.io/#vimeo on iPhone or simulator with iOS < 10
  • click play
  • error in console : Unhandled Promise rejection - Error : {name: "Error"}

Probably caused by Apple policy which disables setTimeout after click to block autoplay.

Vimeo player does work fine.

Contributor guide