AbdurazaaqMohammed / YTPro

All in one YouTube App with downloader, background player and many more features.
https://prateek-chaubey.github.io/YTPro
MIT License
1 stars 0 forks source link

New idea (Buttons in java/xml so we can download the video before the page loads) #1

Open AbdurazaaqMohammed opened 1 month ago

AbdurazaaqMohammed commented 1 month ago

@prateek-chaubey This is an idea I had, if we make a download button in xml we could download a video without having to wait for the page to load. We could also load the title and description before the video and it should be easy to implement the other buttons if we just do onclick web.loadUrl("javascript:(function () { document.querySelector("element").click(); })();");

https://github.com/AbdurazaaqMohammed/YTPro/tree/JavaButtons

So far I only implemented the download button and I didn't try to figure out how to handle scrolling/change the html buttons for xml. Here is the apk, let me know what you think of it

prateek-chaubey commented 1 month ago

Sure i will check it an let you know , btw thanks for giving ideas for new features.

prateek-chaubey commented 1 month ago

So i checked this , it's a good idea , but i want the YTPRO more to be web app specific. Moreover it sends a request to a 3rd party service for getting the info. A few days back as the YouTube updated it's code , the node-ytdl-code package which was being used by ytdl ( a deno deployment ) isn't working anymore , thus i am thinking to shift all the dependencies to youtube itself. Just like the background player which directly extracts the audio url from the youtube itself , i shall be implementing the same with the download button as well in the future updates.