For example, you want to embed the 3gp video of "Google I/O 2012 - What's New in Android?" in your app.
Right click the video to copy Video URL.
Paste and open the link, replace the leading "www.youtube.com" with "m.youtube.com" to get the mobile version.
Corresponding mobile version of the video will be loaded. Right click on the video to Copy Link Address. It's the 3gp link of the video:
rtsp://v4.cache7.c.youtube.com/CjYLENy73wIaLQky7ThXrRjPYRMYDSANFEIJbXYtZ29vZ2xlSARSBXdhdGNoYKjR78WV1ZH5Tgw=/0/0/0/video.3gp
You can copy this link to replace SrcPath in the example "A simple example using VideoView to play 3gp from YouTube".
Thanks ! This post solved my problem:)
ReplyDeleteVery useful blog ..
Ya k, but i have some problem, emulator shows cant play this video , during this error what can i do
ReplyDeleteuse actual device.....coz emulator desnt support live streaming...
DeleteHi I cant play this video in my Emulator,.am using Honycomb(API -12).
ReplyDeleteI actually want to create application for Android Smart TV Box, and want to play RTMP or HLS streaming video in my app, How can I do that Please Help me,..am really helpless,.
thank you.
when i replace the URL "http://www.youtube.com/watch?v=Eet-QdVcrpw&app=desktop" with "m.youtube.com/watch?v=Eet-QdVcrpw&app=desktop".
ReplyDeletethere is no change. Any help please?
May be Google remove m.youtube.com.
DeleteIf you aim to play youtube video on Android, conside Implement Youtube Player using YouTube Android Player API.
Thanks for such nice tutorial
ReplyDeleteBut in my application i want to run new movie trailers they are of high quality,i am not able to play them so could you please help me?
Also could you send me the complete source code for it as i am beginner to android.
Thank you...
You can consider YouTube Android Player API
DeleteThanks its really very nice......
ReplyDeleteThanks for your tutorial. May i know how to play several videos using youtube url?
ReplyDelete