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

Sometimes when trying to play the video a NullReferenceException pops up and the video doesn't load. #122

Open
Shonagon-Sei opened this issue May 21, 2024 · 5 comments
Labels
bug Something isn't working help wanted Extra attention is needed

Comments

@Shonagon-Sei
Copy link

Shonagon-Sei commented May 21, 2024

The NullReference Error pops up randomly, and I have yet be able to diagnose the problem.

Here's the exception

YoutubePlayer.Components.InvidiousVideoPlayer.GetCompatibleVideoFormat (YoutubePlayer.Models.VideoInfo videoInfo) (at ./Packages/com.ibicha.youtube-player/Runtime/Components/InvidiousVideoPlayer.cs:145)
YoutubePlayer.Components.InvidiousVideoPlayer.PrepareVideoUrls (System.Threading.CancellationToken cancellationToken) (at ./Packages/com.ibicha.youtube-player/Runtime/Components/InvidiousVideoPlayer.cs:107)
@iBicha
Copy link
Owner

iBicha commented May 21, 2024

It could probably use a better error format, but this error happens when there's no video format available.
Can you share the videoId and itag?

@iBicha iBicha added the bug Something isn't working label May 21, 2024
@Shonagon-Sei
Copy link
Author

IDs
hzCc6pp9cq8 K1QICrgxTjA BETPVN8V71Y
I'm using the default itag

@iBicha
Copy link
Owner

iBicha commented May 22, 2024

I can't reproduce this error - can you share more details? How often? Any other errors in the console? Which Invidious instance are you using?

@Shonagon-Sei
Copy link
Author

It happens 50% of the time, and there are no other errors. I'm using public Invidious Instance.

@iBicha iBicha added the help wanted Extra attention is needed label May 22, 2024
@Mashimaro7
Copy link

Mashimaro7 commented Oct 29, 2024

I get this too... 100% of the time. Only the first error though.

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

No branches or pull requests

3 participants