player icon indicating copy to clipboard operation
player copied to clipboard

Can't start video with YouTube provider when autoplay request fails

Open DerStimmler opened this issue 1 year ago • 1 comments

Current Behavior:

When I enable autoPlay, use the HLS provider and reload a page with a video on it, the autoplay request fails as expected because of the browsers autoplay policy. Also corresponding events are triggered and errors are written to the console. image But it's still possible to click on the play button to start the video manually.

However when I use the YouTube provider, again the autoplay request fails but no events are triggered nor something is written to console. Also the player stays in the loading state and I can't click the play button to start the video manually.

Expected Behavior:

YouTube provider should have same behavior like HLS provider when autoplay fails. It should still be possible to start the video manually.

Steps To Reproduce:

  1. Enable autoplay
  2. Set a YouTube video as player source
  3. Reload the page

Environment:

  • Framework: Angular v18
  • Node: 20
  • Device: PC
  • OS: Windows
  • Browser: Chrome@126
  • vidstack: 1.11.24

DerStimmler avatar Jun 28 '24 07:06 DerStimmler

maybe related to #1316

DerStimmler avatar Jun 28 '24 08:06 DerStimmler

I'm having the same issue with the latest vidstack version (1.12.9)

  • Framework: JavaScript & Web Components
  • Node: 20.10.0
  • Device: PC
  • OS: Ubuntu 24.04
  • Browser: Chrome 127

zcesur avatar Sep 07 '24 00:09 zcesur