I am just starting to learn android application development. And, right now I am in the process of creating a download manager which can download videos from youtube. I would like to know how to decode the URL of the youtube link that appears on your address bar and convert them to a downloadable link. For ex : I tried pasting a URL from youtube video
Say the URL goes like this : https://www.youtube.com/watch?v=ziJrvjjfqSU I am not able to download the video. Then, I tried to go with the embedded URL link of the video .
Say the URL : http://youtu.be/ziJrvjjfqSU Failed to download the video.
But this time I used an online decoder and decoded the URL of the same video.
https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DziJrvjjfqSU
This time , it works. So can anyone pls tell me how to decode any video URL in youtube to download them ? I am so thankful to all the developers out here in this forum for sorting all my earlier issues that I had posted. Now I hope someone would give a solution to my issue this time. Thanks to all those genius.
P.S: I am using download manager in my code to download the videos and parsing the corresponding URL in the program itself. Once this works out to be good for any URL , then I am planning to have an edit text through which one can paste the URL and download the videos.