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

Neverending loading spinner on blocked youtube videos #1404

Open
katywings opened this issue Aug 19, 2024 · 2 comments
Open

Neverending loading spinner on blocked youtube videos #1404

katywings opened this issue Aug 19, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@katywings
Copy link

Current Behavior:

Youtube videos that are blocked in the target country result in a neverending loading spinner and overlay which makes it impossible to click the "Watch on Youtube" link.

Expected Behavior:

The loading spinner and overlay should hide, when the "Video unavailable" screen is showing up.

Steps To Reproduce:

Its a bit hard to share a generic reproduction as this widely depends on your country, but the general idea is:

  1. Find a Youtube video that is blocked in your country
  2. Embed the blocked video via Vidstack

Reproduction Link: https://www.youtube.com/watch?v=xvFZjo5PgG0

Yupp 🥴, this issue literally was noticed on a 7s Rickroll Meme video, which is blocked in south america...

Environment:

Anything Else?

chrome_evOeaY3M7O.mp4
@katywings katywings added the bug Something isn't working label Aug 19, 2024
@brendanahart
Copy link

brendanahart commented Oct 8, 2024

Has anyone figured out a solution to this? I'm getting the issue for some videos on my website. I'm wondering if vidstack throws an error that we can use so that I can then display a thumbnail which will take people to an external link to watch the video?

Here is the code that I have for error handling but I am unable to catch the error
` const handleError = (event: any) => {
console.error("Vidstack Player Error:", event.detail);

if (props.isYoutube && isNative) {
  setIsVideoUnavailable(true);
}

}
`

IMG_0781

@brendanahart
Copy link

I commented my solution here!

#1456 (comment)

This is now what I get if a youtube video is blocked and then clicking on that directs a user to a browser window where they can play the youtube video

image

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

2 participants