ftde0 / yt2009

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

annotations wont show up under flash player #13

Closed jackhacksren closed 11 months ago

jackhacksren commented 1 year ago

in html5 it works but not in flash will you fix it in the future hmm

ftde0 commented 1 year ago

flash annotations are very picky and can be made to work, make sure you've changed both the urls in both the player and the iv_module.

if you have a semi-modern browser with flash, you can use the Network tab in devtools to see what's going wrong and fix accordingly

jackhacksren commented 1 year ago

i wonder where the iv_module is located

ftde0 commented 1 year ago

kinda buried but it's in the main dir (with all the base html files, /watch.swf and such)

jackhacksren commented 1 year ago

i tried patching the iv_module replacing ur ip with my localhost which is 127.0.0.1 and allowing the security to let my localhost still doesnt show annotations i also dont know how to see whats going wrong in the network tab

ftde0 commented 1 year ago

Untitled

you're looking for:

also make sure you're using the http url.

jackhacksren commented 1 year ago

crossed out the crossdomain.xml i dont see iv_module in the network tabs or read2

ftde0 commented 1 year ago

assuming you're using and modifying the default player (/watch.swf), search it up in the decompiler for "iv_module" and check if there is no hardcoded url to the module. if so put your iv_module url in there.

jackhacksren commented 1 year ago

trying to use the default swf it only says error has occured even trying to patch it and allowing it

ftde0 commented 1 year ago

iv_module doesn't seem to work on other players. make sure you've patched the player correctly. if in doubt always check the network tab and solve the issues from there.

in the network tab for the default player you're looking for whether the /get_video request is made. perhaps you've entered the base url incorrectly?

jackhacksren commented 1 year ago

i did not type the ip wrong i typed the ip at live base url and at the security my browser is chrome 41 and npapi flash 32.0.0.371 with playerglobal swc of 30.0 with the right jpex version 15.1.1

i hope this information helps

jackhacksren commented 1 year ago

i tried patching the iv_module replacing ur ip with my localhost which is 127.0.0.1 and allowing the security to let my localhost still doesnt show annotations i also dont know how to see whats going wrong in the network tab

even trying to change my hosting ip to that of the already put in one 192.168.1.4 it wont work

ftde0 commented 1 year ago

you didn't seem to give back any info about this part

if in doubt always check the network tab and solve the issues from there.

if all else fails, try pulling the 2009 player yourself from an archived 2009 watchpage and try patching that.

take a 2009 archive like http://web.archive.org/web/20091101160503/https://www.youtube.com/watch?v=jNQXAC9IVRw, view its source (ctrl+u) and look for .swf. this should bring up a few results, but what you're looking for is one of the watch-vfl[...].swf files. copy its url, download and try patching those.

jackhacksren commented 1 year ago

you didn't seem to give back any info about this part

if in doubt always check the network tab and solve the issues from there.

i have no idea how do i even see what is wrong from there i on see the module or read2

but im gonna try the 2009 archive

jackhacksren commented 1 year ago

but im gonna try the 2009 archive

the archived one worked

annotations still arent coming in even if the iv_module it self is patched

ftde0 commented 1 year ago

the archive i sent also has an iv_module so you could try patching that one so they matched

jackhacksren commented 1 year ago

even patching that 2009 iv module did not work i also patched the player to include the iv module still didnt work

no idea why

jackhacksren commented 11 months ago

Untitled

you're looking for:

  • iv_module being requested from the right source (click on a request to make sure it's going to the right domain and such)
  • crossdomain.xml doesn't restrict the connection
  • read2 is sent (this is the request for actual annotations themselves, once this is done the annotations should show up)

also make sure you're using the http url.

btw what browser is this on that screenshot

ftde0 commented 11 months ago

not sure if you're still dealing with the issue and tbh your comment reminded me of that issue in the first place.

the browser is basilisk. it's based on older firefox, so i wouldn't use it for anything other than flash content. but for flash it works nicely.

regarding the original issue, i kinda mentioned a fair way to find what's causing a flash player to not work (you could use some of the steps in your annotations case) here.

jackhacksren commented 11 months ago

i dont see a green read2 at all crossdomain is allowing the connection too

both sides r patched too

should i send both my player and my iv module so you can see whats actually wrong

ftde0 commented 11 months ago

feel free, i could have a look when i have free time

jackhacksren commented 11 months ago

watch-vfl129881.zip

i should also note that iv_module is located in yt2009 while the player is located at alt-swf

moving the iv module to alt swf didnt help

ftde0 commented 11 months ago

the watch player is in alt-swf right?

what if you move it to yt2009 and rename it to watch.swf?

jackhacksren commented 11 months ago

the watch player is in alt-swf right?

what if you move it to yt2009 and rename it to watch.swf?

annotations didnt appear but the HQ button did appear

ftde0 commented 11 months ago

move your iv_module back to yt2009. make sure its name is iv_module.swf with nothing else in its name.

jackhacksren commented 11 months ago

move your iv_module back to yt2009. make sure its name is iv_module.swf with nothing else in its name.

i already did that and its already that name

ftde0 commented 11 months ago

had a closer look at your iv_module and compared it against mine. change the DEFAULT_STORAGE_SERVER_BASE_URL from "http://www.google.com/reviews/y/". to your base url. in your case it would be "http://127.0.0.1/".

the base_url is located in google/youtube/iv/common/Config. or use the text search to find the url.

jackhacksren commented 11 months ago

had a closer look at your iv_module and compared it against mine. change the DEFAULT_STORAGE_SERVER_BASE_URL from "http://www.google.com/reviews/y/". to your base url. in your case it would be "http://127.0.0.1/".

the base_url is located in google/youtube/iv/common/Config. or use the text search to find the url.

that still didnt work

using annoying annotations as an test to see if annotations work appeared in html5 so should in flash too

ftde0 commented 11 months ago

went on to troubleshoot with @fortisiontek to make annotations work on yt2009.giabs.ovh. here's what we found.

assuming you've done everything else said before (set the iv_module paths, storage server base url etc)

both the flash player and the iv_module have url validators in them that check if everything is requested from a youtube domain. you will need to bypass the checks as shown below. bypass1 bypass2

you may need to set up a crossdomain correctly if you're using your yt2009 instance under a domain.

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

even if you're using yt2009 from a direct ip, it won't hurt to have that correctly set up so you don't run into issues.

the iv_module swf is requested from the ip you've set up in back/config.json. make sure that is set correctly. you can check whether it is by viewing source (ctrl+u) on the watch page and searching <embed. embed

also a way of knowing whether the iv_module loads is by the annotation icon.

iv_module not loaded: iv_not_loaded

iv_module loaded, can't load annotations themselves: iv_loaded

make sure your ip from config.json matches the one you're using and the one you've set while patching the players and their paths.

jackhacksren commented 11 months ago

went on to troubleshoot with @fortisiontek to make annotations work on yt2009.giabs.ovh. here's what we found.

assuming you've done everything else said before (set the iv_module paths, storage server base url etc)

in addition i added my ip to the youtube domains and the storange domain whitelist and allowed security domains

i also have no idea on what ur trying to say on the iv module part do i delete return true and }

update: now i get it my mistake comparing

jackhacksren commented 11 months ago

now it has the red ! but when i try to turn it on it says it isnt available

when i try to search read2 and noticed that 127.0.0.1read2 i put 127.0.0.1/read2 instead and it wont actually turn on even if i click turn on annotations

another thing i encounter is

Error: ENOENT: no such file or directory, open 'C:\Users\jacke\Desktop\yt2009\yt2009\back\cache_dir\annotations\kLDUnUtRiHM\crossdomain.xml.xml' at Object.open (node:internal/fs/sync:78:18) at Object.openSync (node:fs:565:17) at Object.writeFileSync (node:fs:2288:35) at C:\Users\jacke\Desktop\yt2009\yt2009\back\cache_dir\annotations_cache_manager.js:21:24 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) { errno: -4058, code: 'ENOENT', syscall: 'open', path: 'C:\Users\jacke\Desktop\yt2009\yt2009\back\cache_dir\annotations\kLDUnUtRiHM\crossdomain.xml.xml' }

jackhacksren commented 11 months ago

there is 2 file extensions but when i look at the file explorer it only has 1

here is my crossdomain.xml

cross-domain-policy> allow-access-from domain="127.0.0.1" secure="false"/> allow-access-from domain="192.168.1.4" secure="false"/> allow-access-from domain="ftde-projects.tk" secure="false"/> allow-access-from domain="www.youtube.com" secure="false"/> allow-access-from domain="s.ytimg.com" secure="false"/> cross-domain-policy>

jackhacksren commented 11 months ago

e

ftde0 commented 11 months ago

let me be honest, i don't know what you've done, how you managed to do it. i've never managed to trigger an error you sent and i don't know how one would do so.

you're probably on your own. i'd advise you to redownload the iv_module from the repo and start over.

jackhacksren commented 11 months ago

let me be honest, i don't know what you've done, how you managed to do it. i've never managed to trigger an error you sent and i don't know how one would do so.

you're probably on your own. i'd advise you to redownload the iv_module from the repo and start over.

the annotations themselfs exist there is just xml.xml

jackhacksren commented 11 months ago

okay now annotations work under flashplayer just redid the iv module at the repo

but even with always_annotations OFF the annotations will always get turned on no matter what had to manually turn it off everytime i watch a vid with annotations