JW Player on iPhone

0
COM
I hope you do not make same mistake twice. I did. I researched JQ lightboxes on iPhone twice and there was no need to investigate the second time.

The solution is simple:
lightbox on iPhone is a waste of time.
Just load the video directly and let iPhone open it directly in it's own player.

Here is my solution:


<?php
if(strstr($_SERVER['HTTP_USER_AGENT'],'iPod') || strstr($_SERVER['HTTP_USER_AGENT'],'iPhone') || strstr($_SERVER['HTTP_USER_AGENT'],'iPad')) {

echo "<p><a class='play' href='http://markleeconroy.com/wp-content/themes/twentyeleven/Video/showreel1-iphone.m4v'>My Movie iPhone</a></p>";

}
else {
echo
"<p><a class='youtube' href='http://markleeconroy.com/wp-content/themes/twentyeleven/Video/player.swf?file=http://markleeconroy.com/wp-content/themes/twentyeleven/Video/showreel1.m4v&allowfullscreen=true&height=313&width=400&&id=veneers&searchbar=false&showicons=false&autostart=true&overstretch=fit&backcolor=0xcb231f&frontcolor=0xFFFFFF&lightcolor=0x000000', 'Window1','left=500,top=500,menubar=0,location=0,status=0,width=400,height=313,toolbar=no,resizable=0' title='My showreel'>My Showreel</a></p>";

}
?>