I have followed a tutorial on how to use the youtube gdata. Populating a listview with videos from youtube and a onclick from stackoverflow
But still video play on youtube not inside my application. Please help me to find this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Once you get the You tube url…, Substring the Video_ID from the Url.See the example below i have given.
You can use http://gdata.youtube.com/feeds/mobile/videos/VIDEO_ID api to get the rtsp link from the actual you tube url.Data is in
XML formatonce you get the rtsp link you can play video in VideoView here is the example
For example:
If this link is the video http://www.youtube.com/watch?v=sMM0R19IisI
Then
sMM0R19IisIis the Video_ID.So you can pass this video id to above api to get the rtsp linkTo get Data in
JSON formatuse this http://gdata.youtube.com/feeds/mobile/videos/“+videoid+”?alt=jsonRefer these two links:
Link1
Link2
Once you get the rtsp link you can play it in
VideoView