Launch YouTube Mobile App from my website
I am in the middle of building a website. The website has embedded YouTube
videos. When I'm on my computer I can click and they play and it's all
very lovely. They open up in a Javascript window "prettyPhoto"
The current scripts look like this:
<a href="http://www.youtube.com/video" rel="prettyPhoto" title="video title">
<img src="<?php echo $domain ?>assets/images/youtubethumbnail.jpg">
</a>
When I visit the website on a mobile device such as Android, or iPhone,
iPad etc the video also plays but it plays on the page which on these
screens is very small and not pleasing to the eye. Of course you can zoom
and pan around but that is not problem solving, its just dealing with it.
How can I code in to make the website launch the native YouTube app on the
mobile devices?
I am assuming that something's going to have to go amidst the rel or title
codes that is similar to checking the browser like chrome, firefox, ie,
mobile...
Either this or I'm going to rethink another way of displaying the videos
on this site.
No comments:
Post a Comment