4
<a href="http://www.youtube.com/watch?v=UqX4ohZo8AM">Play Video</a>

How can I force that link to open the YouTube app on an iOS or Android device if one exists with Javascript or native HTML?

Currently it will link to the youtube mobile site then try to launch the App from there when I tried it on Android.

Nicekiwi
  • 4,567
  • 11
  • 49
  • 88

1 Answers1

-1

I believe this will fix it for you.

Force video to open in Youtube app on Android

I guess that makes this a dup.

Community
  • 1
  • 1
user1934286
  • 1,732
  • 3
  • 23
  • 42
  • But is that JavaScript? That looks suspiciously like Java, I need this to work on a website, not within another app. Where do I apply the code links in that question? – Nicekiwi Jan 26 '13 at 11:59
  • 1
    You know you are right. It might be java. As far as I know forcing an app to open from a standard link would be a breach of security. I am pretty sure that using the desktop link instead of mobile typically opens the app. However, this is ultimately a user setting. – user1934286 Jan 27 '13 at 04:21
  • If it were breach of security, they wouldn't allow you to do it from other apps. I think the actual reason is they just don't have the infrastructure set up for it yet. But yes, for now, desktop links open in the app. – Chris Redford Jul 06 '14 at 14:52