ImgurViewer icon indicating copy to clipboard operation
ImgurViewer copied to clipboard

YouTube Support

Open sidit77 opened this issue 1 year ago • 3 comments

I was recently thinking about adding YouTube support. I have a working prototype here using Piped including support for clips and timestamped links,

However, I think Google has a problem with 3rd party YouTube clients in the PlayStore. So this feature would have to be limited to F-Droid and Github. Do you think this could be done using some kind of conditional compilation or should I just keep this as a seperate branch and only upstream the generic changes I had to make to implement YouTube support?

sidit77 avatar Jul 25 '23 21:07 sidit77

Oh that's awesome! This can be achieved with android build variants / flavors. That would be the correct way of doing it. I'm exited that you took the work on it. I thought of doing it several times but I'm too lazy and I'm currently paying for the premium account so I kinda lost interest. Hope you can continue working on it and we can merge it to this repo. Good luck!

SpartanJ avatar Jul 26 '23 04:07 SpartanJ

Thanks for the quick reply. I have another question: How do you generally handle video quality? Just selecting the highest seems risky given that YouTube supports 4k videos. Maybe there should be a setting to set an upper limit like 1080p?

sidit77 avatar Jul 26 '23 05:07 sidit77

Currently I select the highest resolution up to 1080p, ignoring anything bigger than that. But ideally I should add an option to prioritise a user-configured resolution, but I was too lazy to implement it. You can keep the same logic for the moment, use the greater resolution up to 1080p.

SpartanJ avatar Jul 29 '23 03:07 SpartanJ