Aug 24, 2012

Get 3gp link of Youtube video

The post "A simple example using VideoView to play 3gp from YouTube" describe how to play Youtube video in 3gp format on Android. But how can you get the 3gp link of Youtube video?

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".



10 comments:

  1. Thanks ! This post solved my problem:)
    Very useful blog ..

    ReplyDelete
  2. Ya k, but i have some problem, emulator shows cant play this video , during this error what can i do

    ReplyDelete
    Replies
    1. use actual device.....coz emulator desnt support live streaming...

      Delete
  3. Hi I cant play this video in my Emulator,.am using Honycomb(API -12).

    I 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.

    ReplyDelete
  4. 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".
    there is no change. Any help please?

    ReplyDelete
    Replies
    1. May be Google remove m.youtube.com.

      If you aim to play youtube video on Android, conside Implement Youtube Player using YouTube Android Player API.

      Delete
  5. Thanks for such nice tutorial
    But 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...

    ReplyDelete
  6. Thanks its really very nice......

    ReplyDelete
  7. Thanks for your tutorial. May i know how to play several videos using youtube url?

    ReplyDelete

Infolinks In Text Ads