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

Media Player failed to load YouTube videos #52

Closed
CerealYe opened this issue Feb 26, 2023 · 4 comments
Closed

Media Player failed to load YouTube videos #52

CerealYe opened this issue Feb 26, 2023 · 4 comments

Comments

@CerealYe
Copy link

CerealYe commented Feb 26, 2023

So here's the bug I just reported, I tried to request some YouTube videos I want and it doesn't work, I get a error message in the chat that says "[Request Error] Failed to load YouTube [unsuccessful]".

image

I'm actually on chromium version beta and it was work before, but it doesn't work anymore.
Not only that, but even Twitch live streams doesn't work either. It only works with supported file urls like mp3, wav, ogg, jpg, png, and webm.

Sam, or who ever contributes this mod, please fix!

@samuelmaddock
Copy link
Owner

Oddly I was only able to reproduce the issue once, even with the metadata cache disabled. I might have fixed this in 9cf510f

I've published an update on workshop. Let me know if it's fixed.

@CerealYe
Copy link
Author

CerealYe commented Mar 1, 2023

I tried to request YouTube video after this update, and it doesn't look like it's fixed.
image

@CerealYe
Copy link
Author

Finally, it actually works! It's been 3 weeks, now I can watch any videos on gmod!
20230322130120_1
Thank you, Sam! You're the best!

@Zvbhrf
Copy link

Zvbhrf commented Jun 28, 2023

The problem still exists.
I have my own server, which I haven't updated for a while (about 1-3+ gmod updates, I don't know 😄)
I have a friend, who also has his own server too, which was running on the latest version.

He said that on his server mediaplayer gives this error and it's because of gmod updates. He tried to fix it but without any success.
I didn't notice this error on my own server until the June update (Wed, June 28), in which I had to update the server because players couldn't join.
After an update, mediaplayer on my server got broken with the same error: "unsuccessfull" on requests.
image

I heard that mediaplayer on singleplayer still works, so I decided to check it:
I installed mediaplayer on my local server, updated the server to the latest update, ran it, and.. the mediaplayer wasn't working. Got "unsuccessfull" on requests.
I went to singleplayer and got this error (which was already reported: #56):
image

I tried to debug mediaplayer and I think the problem is in the YouTube's service Fetch function, maybe HTTP was updated in one of the gmod updates. I don't know in which one, because I don't follow updates.

(Local server version, if necessary)
Protocol version 24
Exe version 2023.06.28 (garrysmod)
Exe build: 21:14:04 Jun 27 2023 (8998) (4000)
GMod version 2023.06.28, branch: unknown
Windows 32bit Dedicated Server

(Linux server version, the running server)
image

(I apologize for any errors that may be in the issue, because I am not a native English speaker. I hope everything is clear)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants