Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
DerStimmler opened this issue Jun 28, 2024 · 1 comment
Open
Labels
bug Something isn't working

Comments

@DerStimmler
Copy link
Contributor

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 DerStimmler added the bug Something isn't working label Jun 28, 2024
@DerStimmler
Copy link
Contributor Author

maybe related to #1316

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant