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

Android 2.3.7 playback not working #206

Closed
acewayx opened this issue Jan 20, 2025 · 61 comments
Closed

Android 2.3.7 playback not working #206

acewayx opened this issue Jan 20, 2025 · 61 comments

Comments

@acewayx
Copy link

acewayx commented Jan 20, 2025

I patched :
2.0.16
2.1.6
2.3.4
(and more)
and the playback didnt work on any of them,
The device im using is motorola flipout running custom rom android 2.3.7 , i did everything with instructions (manualy) and it doesnt work.

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

i mean its loading indefinitly.

@SavunOski
Copy link
Contributor

Does the Related and Comments tab work on the watch page?

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

it accualy doesnt (thanks so so much for response btw :D)

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

they display network error or load indefinitly

@SavunOski
Copy link
Contributor

SavunOski commented Jan 21, 2025

You need to switch to prod environment and enable SSL. But beforehand, generate a key using:
openssl req -newkey rsa:2048 -new -nodes -keyout key.pem -out csr.pem
Then generate a certificate using: openssl x509 -req -days 365 -in csr.pem -signkey key.pem -out server.crt

After this, server.crt will be your certificate and key.pem will be your key to use when yt2009 asks for it during setup.

These commands work on Ubuntu, but I haven't tried other distros/Windows. Look up the proper syntax for your operating system and use it like that instead if it doesn't work. If all you want is to get it working asap, I can also generate a cert/key pair for you on my Linux server and send it your way with bogus info.

You're welcome!

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

i get this error now when trying to start back end :

node:internal/tls/secure-context:93
context.setKey(key, passphrase);
^

Error: error:1E08010C:DECODER routines::unsupported
at setKey (node:internal/tls/secure-context:93:11)
at configSecureContext (node:internal/tls/secure-context:204:7)
at Object.createSecureContext (node:_tls_common:116:3)
at Server.setSecureContext (node:_tls_wrap:1497:27)
at Server (node:_tls_wrap:1361:8)
at new Server (node:https:75:3)
at Object.createServer (node:https:133:10)
at Object. (C:\Users\USERnotNAME\Desktop\yt2009\back\backend.js:68:30)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
library: 'DECODER routines',
reason: 'unsupported',
code: 'ERR_OSSL_UNSUPPORTED'
}

Node.js v20.17.0

@SavunOski
Copy link
Contributor

Can you send your config.json here? You can remove the IP adresses and such.

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

{"port":6069,"env":"prod","ip":"<PRIVATE_INFORMATION>","useSSL":true,"SSLCertPath":"C:\Users\USERnotNAME\<PRIVATE_INFORMATION>\server.crt","SSLKeyPath":"C:\Users\USERnotNAME\<PRIVATE_INFORMATION>\csr.pem","SSLPort":"6969","tokens":["*"],"auto_maintain":true,"maintain_max_size":10,"maintain_max_cache_size":15}

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

and yes haha funny number , i didnt have other ports that i knew were free ._.

@SavunOski
Copy link
Contributor

SavunOski commented Jan 21, 2025

As far as I know, port HAS to be 80 and SSL port HAS to be 443 in order for the app to work. Simply edit those out to be the correct values, and try again

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

i edited it out and still get this error :

node:internal/tls/secure-context:93
context.setKey(key, passphrase);
^

Error: error:1E08010C:DECODER routines::unsupported
at setKey (node:internal/tls/secure-context:93:11)
at configSecureContext (node:internal/tls/secure-context:204:7)
at Object.createSecureContext (node:_tls_common:116:3)
at Server.setSecureContext (node:_tls_wrap:1497:27)
at Server (node:_tls_wrap:1361:8)
at new Server (node:https:75:3)
at Object.createServer (node:https:133:10)
at Object. (C:\Users\USERnotNAME\Desktop\yt2009\back\backend.js:68:30)
at Module._compile (node:internal/modules/cjs/loader:1469:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1548:10) {
library: 'DECODER routines',
reason: 'unsupported',
code: 'ERR_OSSL_UNSUPPORTED'
}

Node.js v20.17.0

@SavunOski
Copy link
Contributor

Oh I completely forgot the actual problem 😅
You seem to be using csr.pem as the key. That is not the actual key and you need to use key.pem instead.

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

uh , like i very rarly do stuff which use certificates/etc , how can i aquire such a key ?

@SavunOski
Copy link
Contributor

key.pem should already be in the folder you ran the first 2 commands on

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

and which one do i connect to the app ?
443 or 80 ?

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

Port 80 says :
There was a problem while playing
Touch to retry

@SavunOski
Copy link
Contributor

The app will automatically choose which one to connect to, simply follow the steps in APK_SETUP.md.
Use HTTP if possible though

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

I did that APK_SETUP.md like 6 times so i know i have to use it duhh :D

@SavunOski
Copy link
Contributor

You don't need to explicitly indicate the port in most instances, try it without the port

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

still nothing , still problem while playing

can it have anything to do with me using cloudflared tunneling ?

@SavunOski
Copy link
Contributor

Might be, since one other instance that I know of which uses cloudflared also has the same issue with the app not working. I don't use it and so I don't really know the fix.

I have a public instance you could use that does work, if you want? I also already patched a ton of versions

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

its not fun if you do that.

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

also i have domain i used on cloudflared so i kinda have to use it

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

also wdym by

I have a public instance you could use that does work, if you want? I also already patched a ton of versions

@SavunOski
Copy link
Contributor

also wdym by

I have a public instance you could use that does work, if you want? I also already patched a ton of versions

I've got a yt2009 instance publicly available, and apps do work when patched using it

also i have domain i used on cloudflared so i kinda have to use it

I've got no idea how cloudflared works or why it cannot be used as an endpoint for an app (or if it's the problem in the first place), sorry lul
You could try patching using the IP of the host machine directly, although idk if that bypasses cloudflare or not

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

im hosting it locally

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

idk any other alternatives and basically oracle sucks

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

do you maybe have any suggestions for tunneling software ?

@SavunOski
Copy link
Contributor

I used localtunnel for a project before and it worked very well, you could check it out

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

and how can i make it not ask for password and not reset the domain each time ?

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

I used the localtunnel software and it still says There was a problem while playing , i cant anymore i cant i cant i cant

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

WHY DOESNT IT WORK ??????
I DO EVERYTHING FOR ALL THIS TIME AND NOTHING WORKS WHY WHY WHY HWY HWH ASDUH FYB OGHIUYA IRHTFAS I JSYADF RCANT ANYMORE THIS DOESNT MAKE SENSE I DO EVERYTHING RIGHT I DO IT 20 TIMES AND NOTHING WORKS >???? WHY IS IT ALWAYS LIKE THIS ????????

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

how about that public instance ?
I just cant with those tunneling shits why is it always designed to be pain in the ass to install and pain to use ?

I have a public instance you could use that does work, if you want? I also already patched a ton of versions

@SavunOski
Copy link
Contributor

SavunOski commented Jan 21, 2025

Sorry for the late reply
You can use my instance at http://89.168.117.130/
It redirects to the fastest other instance available at the moment.

The already patched apps are available at https://app.mediafire.com/kmf3dpddwiw0q , but you can also patch any other versions yourself.

I don't know of any ways to disable password protection in localtunnel, will let you know if I come across it

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

then how are you hosting it ????

@SavunOski
Copy link
Contributor

The main instance is hosted on Oracle Cloud for compatibility with older patches (I hardcoded the IP, so theres no other way to redirect to another instance without repatching), which then redirects to Azure because the free servers there are faster.

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

yea i wanna do dedicated client and stuff for android 2.3.7 (as in modernizing the design) so i wanna host it myself , sadly oracle doesnt allow me to make an instance :P

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

yes i know this idea is dumb.. its just my ideas mostly

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

sometimes im just in my own world , im sorry if i were mean ealier or something

@SavunOski
Copy link
Contributor

It's ok, although I think you can still modernize without altering server side code?

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

yes but i also wanna block the use of the website itself (yes i know its stupid as hell but i just want to :c)

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

doesnt work.
i patched the apk and it doesnt work and it infact should.

Sorry for the late reply You can use my instance at http://89.168.117.130/ It redirects to the fastest other instance available at the

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

apk version :
2.1.6

@SavunOski
Copy link
Contributor

Could you attach the APK file, or provide more info about how it's failing (like traffic capture, any error codes or something)

@SavunOski
Copy link
Contributor

I was getting the same error just now, looks like something was going wrong with the Azure server. I reversed back to Oracle for the moment, could you check again? Restart the app just in case.

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

yea let me check

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

nope still the same thing , to clarify i rebooted the whole phone

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

here is the apk

cattube3-aligned-debugSigned.zip

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

it was patched according to the instructions

@SavunOski
Copy link
Contributor

Some videos don't seem to be working, try other videos

I'll check the APK tomorrow

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

i patched an newwer version and it says "connection to server lost"

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

yea sometimes its server error and sometimes playback error

@acewayx
Copy link
Author

acewayx commented Jan 21, 2025

Some videos don't seem to be working, try other videos

its all not some

@thefireKS
Copy link

+1
Set everything up like SavunOski said, no errors in cmd
But videos are not playing, all of them. Just stuck on an infinite loading

@acewayx
Copy link
Author

acewayx commented Jan 31, 2025

same , they are in a loop of loading , same issue

@acewayx
Copy link
Author

acewayx commented Jan 31, 2025

i mean now its playback error , i had the infinite loading ealier

@thefireKS
Copy link

UPD for my case: i connected to my mobile internet and it worked. Seems there's an issues with open ports of my provider.

@ftde0
Copy link
Owner

ftde0 commented Feb 2, 2025

assuming the instance is set up correctly (config.ip MUST be a proper IP and not 127.0.0.1/localhost for playback), android versions lower than 4.2 need additional handling for video playback to work, but they are not always detected. in such cases, you can proxy the device and check the user-agent sent to the /get_video requests once you click a video within the app.

you can then add a unique part of that user-agent (such as a LG Player 1, HTC Streaming Player, whatever you find in that useragent) to a reencode_devs config variable (or YT2009_REENCODE_DEVS for docker).

@ftde0
Copy link
Owner

ftde0 commented Feb 13, 2025

no activity, assuming solved

@ftde0 ftde0 closed this as completed Feb 13, 2025
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