sampotts / plyr

A simple HTML5, YouTube and Vimeo player
https://plyr.io
MIT License
26.59k stars 2.93k forks source link

Vimeo codepen not functioning on load. #1533

Open zakickes opened 5 years ago

zakickes commented 5 years ago

The Vimeo Codepen example will only play the video if you include data-plyr-config='{autoplay, false}' in the player div. Not sure if this is expected, but as a first time user of Plyr it was quite confusing when on load the page wasn't functioning.

zakickes commented 5 years ago

With further testing sometimes autoplay false lets me start the video, and sometimes adding nothing lets me start the video - Inconsistent results. I'm on Chrome

This is the error message I am receiving when the video doesn't play.

player.js:2 Uncaught (in promise) NotAllowedError: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD
    at https://player.vimeo.com/api/player.js:2:8705
    at Array.forEach (<anonymous>)
    at b (https://player.vimeo.com/api/player.js:2:8679)
    at e (https://player.vimeo.com/api/player.js:2:10426)
jackbark1996 commented 4 years ago

Hi @zakickes - was this resolved? I'm looking to use pylr.io with Vimeo and looking for assurance that it works! But I can't get a video to play in codepen