sampotts / plyr

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

"Setting the playback rate is not enabled for this video" error #2393

Open ffxsam opened 2 years ago

ffxsam commented 2 years ago

Expected behaviour

Player loads with no issues.

Actual behaviour

I'm seeing an error that I can't replicate locally and I can't replicate in CodePen. This happens only with one Vimeo video as far as I can tell: https://vimeo.com/121972840

The error is caught by Sentry and this is all the detail I get:

{
  "currentTarget": "[object Window]",
  "detail": {
    "message": "Setting the playback rate is not enabled for this video.",
    "method": "setPlaybackRate",
    "name": "Error",
    "plyr": {
      "airplay": "[Function: <anonymous>]",
      "captions": "[Object]",
      "config": "[Object]",
      "debug": "[Object]",
      "decreaseVolume": "[Function: <anonymous>]",
      "destroy": "[Function: <anonymous>]",
      "elements": "[Object]",
      "embed": "[Object]",
      "eventListeners": "[Array]",
      "failed": false,
      "forward": "[Function: <anonymous>]",
      "fullscreen": "[Object]",
      "id": 8411,
      "increaseVolume": "[Function: <anonymous>]",
      "lastSeekTime": 0,
      "listeners": "[Object]",
      "loading": false,
      "media": "[object HTMLDivElement]",
      "off": "[Function: <anonymous>]",
      "on": "[Function: <anonymous>]",
      "once": "[Function: <anonymous>]",
      "options": "[Object]",
      "pause": "[Function: <anonymous>]",
      "play": "[Function: <anonymous>]",
      "provider": "vimeo",
      "ready": true,
      "restart": "[Function: <anonymous>]",
      "rewind": "[Function: <anonymous>]",
      "stop": "[Function: <anonymous>]",
      "storage": "[Object]",
      "supported": "[Object]",
      "supports": "[Function: <anonymous>]",
      "timers": "[Object]",
      "toggleControls": "[Function: <anonymous>]",
      "togglePlay": "[Function: <anonymous>]",
      "touch": false,
      "type": "video"
    }
  },
  "isTrusted": false,
  "target": "div.plyr.plyr--full-ui.plyr--video.plyr--vimeo.plyr--fullscreen-enabled.plyr--paused.plyr--stopped",
  "type": "error"
}

The error is thrown immediately upon page load, before I even touch any controls on Plyr.

Sorry this is all the info I have and I can't reproduce it. But I thought I'd post it in case someone knows off the top of their head why this is happening.

Environment

Link to where the bug is happening

https://play.reelcrafter.com/rc/live-reel

ffxsam commented 2 years ago

@sampotts Any ideas on this?

ffxsam commented 2 years ago

@hug963 I noticed from #1696 that you merged a fix, but the bug appears to be back. We repeatedly see this error come up, and it appears to be when someone has embedded a Vimeo video. Any idea why this would be happening again?

ffxsam commented 2 years ago

Hey @sampotts, just wanted to put this issue on your radar again. We're still facing this, but it seems non-critical so I'm ready to ignore it in Sentry. I wanted to see if there was a workaround, though.