Can't start video with YouTube provider when autoplay request fails
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.
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:
- Enable autoplay
- Set a YouTube video as player source
- Reload the page
Environment:
- Framework: Angular v18
- Node: 20
- Device: PC
- OS: Windows
- Browser: Chrome@126
- vidstack: 1.11.24
maybe related to #1316
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