Youtube RTSP link

I want to add youtube video in my android player.

“”" First you will need your video id from Youtube, for example :, the Ndpryp2OlUQ part of this url is video id.
Then you’d have to go here{your video-id} for the example above
This will open an XML file for you, search for “rtsp” and you fill find full link that you need to put in local video module. “”""

I have made them but not work.What can I do ?

I have made second option


That method worked till April 2015, after that Google/YouTube changed their policy and RTSP links are no longer working. At the moment you can only download videos from YouTube (if you have permission to do so). Solution only workaround 1 will work, that’s why workaround 2 has strikethrough text.