redxtech / vue-plyr

A Vue component for the plyr (https://github.com/sampotts/plyr) video & audio player.
Other
771 stars 137 forks source link

Get "play() failed because the user didn't interact with the document first." error on Chrome #335

Open Jesus1124 opened 3 years ago

Jesus1124 commented 3 years ago

In order to avoid this problem, I muted the video and it plays well. But when I try to unmute it, the video is paused and I get the error above.

Please let me know if there's a simple way to solve this issue. Thanks.

cfabrice commented 3 years ago

same here... probably related to this: https://github.com/sampotts/plyr/issues/2138 This is not fixed with latest plyr (3.6.4)

AndriyLenginDev commented 3 years ago

Hello everyone. I am using the latest vue-plyr and plyr (v3.6.4) and experiencing the same problem. Got the same console error logs Uncaught (in promise) NotAllowedError: play() failed because the user didn't interact with the document first. https://goo.gl/xX8pDD The problem can be reproduced in the Chrome browser only (Windows, Mac, mobile devices). After some research found that video can play only when muted or when it was clicked directly on the iframe (need to remove plyr overlays). Thanks for any information and help