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

What is Stream_204? #69

Open
Wabagg12345 opened this issue Mar 30, 2024 · 5 comments
Open

What is Stream_204? #69

Wabagg12345 opened this issue Mar 30, 2024 · 5 comments

Comments

@Wabagg12345
Copy link

So, I'm also working with YouTube on the Wii and whenever I try to play a video it requests from s.youtube.com/stream_204. I've tried researching on what it is or was and couldn't find anything about it. So if anyone knows about this, please let me know

@aldairbotherotaku
Copy link

may be ads, since it is blocked in many hosts files

@ftde0
Copy link
Owner

ftde0 commented Apr 2, 2024

stream_204 and player_204 are logging requests, which could explain it being blocked described above. HOWEVER /stream_204 requests could also be made in case there was an error with video playback.

in case of wii's apiplayer, a logPlayerEvent function is used to initiate sending such requests, and if you're looking for the source of stream_204 requests, they are made whenever logData is streamingerror, which should sound pretty self-explanatory.

however, as streamingerror itself in an error request can be pretty vague, you CAN text search for streamingerror within the apiplayer swf and find logPlayerEvents that mention streamingerror.

an example string you may find:

this.logPlayerEvent("streamingerror",_loc2_);

there will be several matches like this, all of which you can look at the function name and add that to the streamingerror, as that will be sent with the request (and thus you will be able to see in the network tab).

for example, such logPlayerEvent call will be in a function called onFormatUnset, which could happen when no formats are sent OR the formats can't be played on your setup (for example h264 mp4's will have trouble playing on flash 8 and they will send a formatunset because of that).

you can change the logPlayerEvent call in onFormatUnset to better reflect what the streaming error is about.

this.logPlayerEvent("streamingerror",_loc3_);

could become

this.logPlayerEvent("streamingerror_formatunset",_loc3_);

while this could now send a /player_204 instead of /stream_204 (streamingerror is hardcoded as a thing to be sent to /stream_204), it could give you a better insight as to what's going on within the player.

@Wabagg12345
Copy link
Author

Ok, Thank you for responding, this helps me out a lot

@Wabagg12345
Copy link
Author

Ok, so I figured all that out and I did do the thing where you can make it download a flv and....
IMG_4039
If you need more context, I'll provide more info

@FurblandChannel
Copy link

This might be a problem with the instance you’re using. If you have access to the instance's logs I suggest checking them and seeing if you notice anything off.

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

4 participants