“href” value in HTML to open video in youtube app or market (Google Play) on Android

I’m making a Web Page that shows 360 videos, but i recently noticed that 360 functionality in the android browser is not supported, and because of this the video wont shows correctly, so after searching a lot i found that the best option is to try to open the video in the YouTube app making use of an “Android Intent” explained in this developer tutorial:


  • android emulator won't start on ubuntu 12.04 after when run from ssh
  • Android 9-Patch Background Image Initial PNG Size?
  • Resetting Search Widget (SearchView) value
  • How to estimate potential income of using AdMob in the app?
  • Moving Floating Action Button up and down to avoid getting blocked by a snackbar
  • BroadcastReceiver onReceive timeout
  • So i need to construct the href address for a YouTube video, but unfortunately i don’t know android programming and also can’t find the YouTube App xml manifest to fill the options, can anyone help me?

       HOST/URI-path <-- I think here needs to be the video URL? 
          package=com.google.android.youtube.player.YouTubeIntents; <-- Is this the correct package? or should i use com.google.android.youtube.player? 
          action=createPlayVideoIntentWithOptions(context, UUweNrpFTwA, true, true); <-- Dont know what to put in context field 
          category=[string]; <-- Is category needed? if so what category should i place here?
          component=[string]; <-- Is component needed?
          scheme=youtube; <-- Is this the correct scheme?

    Any help or tutorial will be greatly appreciated… Thanks!!

    Related posts:

    Lost keystore alias but have file and password used for alias
    Android: Change Spinner Dropdown view
    Rounded buttons
    Why Warning:Unable to find optional library: org.apache.http.legacy occurs?
    Android private fields naming guidelines are ok?
    Android check GPS availability on device
  • Options menu not showing in ICS using compatibility library
  • ActivityLifecycleCallbacks are not triggered when activity is killed through “Don't keep activities”
  • convert Bitmap to Mat after capture image using android camera
  • Android: How to send http request via service every 10 seconds
  • C:\Program Files\MSBuid\Novell\Novell.MOnoDroid.Csharp.targets was not found
  • How can I implement custom Action Bar with custom buttons in Android?
  • 2 Solutions collect form web for ““href” value in HTML to open video in youtube app or market (Google Play) on Android”

    1) Intent solution :

    <a href="
    ">youtube or market</a>


    Maybe you need to remove spaces in href attribut:

    <a href="intent://8xn9iq3lG_w/#Intent;scheme=vnd.youtube;package=com.google.android.youtube;S.browser_fallback_url=market://details?id=com.google.android.youtube;end;">youtube or market</a>


    2) Link solution :

    You get more information in Settings > Apps > Youtube > Open by default > Supported links:

    See: https://youtu.be/8xn9iq3lG_w and try, here: http://output.jsbin.com/tubozokebe/

    <a target="_blank" href="https://youtu.be/8xn9iq3lG_w">link: https://youtu.be/8xn9iq3lG_w</a> or
    <a target="_blank" href="vnd.youtube:8xn9iq3lG_w">link: vnd.youtube:8xn9iq3lG_w</a>


    You can use:

    I am not sure about it…But try.

    Android Babe is a Google Android Fan, All about Android Phones, Android Wear, Android Dev and Android Games Apps and so on.