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

Force youtube quality or speed #200

Open
basilelt opened this issue Nov 16, 2024 · 6 comments
Open

Force youtube quality or speed #200

basilelt opened this issue Nov 16, 2024 · 6 comments

Comments

@basilelt
Copy link

Would it be possible to add a way in iSponsorBlockTV to send a forced resolution (like 4k60) and even a force speed control (like 1.25).

It would be a really nice feature as YouTube really likes to set it to auto quality or even 480p.

And for speed it gets reset pretty often.

Thank you in advance !

@basilelt
Copy link
Author

basilelt commented Nov 16, 2024

Wanted to take a look myself but : https://stackoverflow.com/questions/37846208/how-to-set-playback-quality-youtube-api

I know of a similar project that uses another way to control youtube to skip sponsor : https://github.com/bsharper/sbremote
And uses Apple TV remote controls from network pairing, maybe something similar could be possible to change the quality. I changed to your solution because it's more versatile and the previously mentioned doesn't work anymore (maybe apple/youtube changed some stuff).

@dmunozv04
Copy link
Owner

It would certainly be possible and a nice to have, considering YouTube last week decided to change the quality on my TV to 720p again.
This project doesn’t use the regular YouTube api, but rather their internal (and undocumented) lounge api; the one the YouTube app on your phone uses to remote control the YouTube app on a TV.

If you want to dive into it, I’d suggest checking pyytlounge, the wonderful library this project uses; and this wiki that describes a bunch of things about the API.
Another way to find new events like changing resolution or playback speed is to setup a recording proxy like Charles proxy or Proxyman on your phone, record the traffic when changing that setting and identifying what’s happening.
Do let me know if you need anything else, I hope you find this useful

@basilelt
Copy link
Author

basilelt commented Nov 16, 2024

It seems like either YouTube is not allowing remote change of the quality through the lounge api or they haven't implemented it yet.
Screenshot_20241116-233113.png

@basilelt
Copy link
Author

Premium controls don't work either, stays on auto Screenshot_20241116-233338.png

PXL_20241116_223431204.jpg

@basilelt
Copy link
Author

I tried both normal and beta versions of youtube on Android, no luck sadly.

@dmunozv04
Copy link
Owner

Yeah, you're right; it used to work before but it's broken currently

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

2 participants