T
T
tasheal2016-11-29 18:19:03
YouTube
tasheal, 2016-11-29 18:19:03

How to register the code to open in the Youtube application from the phone?

Good afternoon!
it is necessary that the link karpovlab.com/2017 opens the video from the smartphone (there is a redirect to YouTube) in the Youtube mobile application. If not, then offer to download from the store.
Interested in iOS and Android.
I specify the following code of the index.html page:

<meta http-equiv="refresh" content="0; url=https://youtu.be/vaujPAxZhZ8" />
<script language="javascript">
  window.location = "https://youtu.be/vaujPAxZhZ8";
</script>

there is nothing else in the code.
Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Violetta Morozova, 2016-12-08
@tasheal

As far as I understood the question should be a link. But I don't see her here. That is, the "a" tag itself. What do you need to click on to open YouTube? meta is a meta tag, it is not displayed on the page.
Okay, this is all demagogy.
Here's how it should look. Nothing more. Although, depending on what you are developing on, for example, on F7, the "a" tag must also be assigned an external class.
In short, the phone itself recognizes in which application to open the link, if the link address contains a link to a video clip from YouTube, it will open in the YouTube application.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question