ftde0 / yt2009

2009 youtube frontend.
Apache License 2.0
193 stars 120 forks source link

Problems with the flash players #23

Closed TheOnlyOne12315 closed 11 months ago

TheOnlyOne12315 commented 11 months ago

I am having problems with the Flash players. I patched the Flash player (2006 - 2008 is the one I want to use) and it just says Loading... forever and doesn't load the video. Side note this is not due to flash emulators not working as I'm using pale moon.

TheOnlyOne12315 commented 11 months ago

Sometimes it also shows the classic loading circle

ftde0 commented 11 months ago

make sure you've patched correctly. if not using h264 (enable at the bottom of /toggle_f) you'll have to wait before the video starts playing. open the network tab in your browser before loading the video. make sure the urls requested by the player (for 2006-2008 it will just be /get_video) are reachable. (if not, base_url set incorrectly perhaps?)

TheOnlyOne12315 commented 11 months ago

How do I get to the network tab? (On pale moon)

TheOnlyOne12315 commented 11 months ago

I also enabled h264 (Don't know if it will help) and it didn't help

ftde0 commented 11 months ago

open devtools (right click -> inspect element) and look for the Network tab on the top of the devtools window. once you click it load a video on yt2009.

here's how a proper network tab log will look like:

ghisss

  1. 2006.swf - the player itself
  2. get_video - the initial request for the video. this is most likely where your issue lies. make sure nothing is amiss by right clicking the get_video request and opening it in a new tab.
  3. channel_fh264_getvideo - a h264 handler for flash, redirects there if you have h264 enabled
  4. crossed out bc irrelevant
  5. the video mp4 itself, once that comes through the video should start playing.
TheOnlyOne12315 commented 11 months ago

It's showing stuff but none of the ones you listed

ftde0 commented 11 months ago

you could try setting up a crossdomain.xml. there is an older /crossdomain.xml in the repo used in early development, feel free to mess around. https://www.adobe.com/devnet-docs/acrobatetk/tools/AppSec/xdomain.html#typical-policy

if that fails, most likely a bad patch.

TheOnlyOne12315 commented 11 months ago

Can you leave a download link for cross-domain Idk how to make XML files properly

TheOnlyOne12315 commented 11 months ago

The SWF file is sending messages to vidlii

ftde0 commented 11 months ago

crossdomain allowing everything for troubleshooting:

<cross-domain-policy>
    <allow-access-from domain="*" secure="false"/>
</cross-domain-policy>

save to your crossdomain.xml. if that works make a proper crossdomain if you're hosting a public instance.

if still fails, bad patch. read the flash player doc CAREFULLY. don't patch it to vidlii!!! you want to patch it to your yt2009 instance.

TheOnlyOne12315 commented 11 months ago

Thanks for the code, what I mean by "The SWF file is sending messages to vidlii" is that when I was patching the SWF file it had the links set to vidlii and not youtube "Yes I did change the links to the localhost IP"

TheOnlyOne12315 commented 11 months ago

Where should I put the crossdomain

TheOnlyOne12315 commented 11 months ago

I just figured the file I used was the vidlii player from when they used Flash. I need to find the original player and see where the problem goes. Do you know where I can find it?

ftde0 commented 11 months ago

i'm lost, the original 2006 swf (with a different url at most) and the instructions to patch it are in the repo (alt-swf). the instructions are at flash_player_patch.md. how you're messing around with vidlii? what does vidlii have to do with all of this?

read the flash player patch CAREFULLY and THOROUGHLY.

TheOnlyOne12315 commented 11 months ago

The 2006 swf file I was using was the vidlii player not the original. And yes I read the instructions

TheOnlyOne12315 commented 11 months ago

crossdomain crashed node.js what happened?

ftde0 commented 11 months ago

i'm concerned you're doing something wrong.

crossdomain.xml won't crash the whole frontend.

did you follow the instructions i gave you previously? i mentioned looking through the network tab to pinpoint what's going wrong and you didn't seem to use the info from that.

please repatch the player. if a crash keeps happening send the full log so i can get an idea of what's happening.

TheOnlyOne12315 commented 11 months ago

Fixed it player's working now :D

TheOnlyOne12315 commented 11 months ago

Bruh patched it right now