Agreed, but for those who do not know how to code for the iphone and hence embed a quicktime movie for playback,
I offer the following:
First this iPhone "safari" browser detection script (place it in the head section just below your meta tag description of your site and before the title arrowpoints, on say an index page that will forward/redirect surfer to the quicktime playback page):
<script language=javascript>
<!--
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)))
{
location.replace("
http://www.yourwebsite.com/folder/iphoneindex.htm");
}
-->
</script>
Second you need this apple javascript to avoid issues on the re-direct landing page:
<script src="AC_QuickTime.js" language="JavaScript" type="text/javascript">
</script>
<title>notfubarred.com</title>
<script language="javascript">
var ua = navigator.userAgent ;
if (ua.indexOf("iPhone") > 0) document.location.replace("TheMandarinMystery_512kb.mp4");
</script>
Here’s a link to grab your own copy of the .JS file:
http://developer.apple.com/safari/library/samplecode/HTML_video_example/listing1.html
Third embed the movie with desriable params:
<!-- begin embedded QuickTime file... -->
<table border=’0’ cellpadding=’0’ align="center">
<!-- begin video window... -->
<tr><td>
<script language="javascript">
QT_WriteOBJECT(’TheMandarinMystery_512kb.mp4’, ’Width’,’Height+16’, ’’, ’autoplay’, ’false’);
</script>
</td></tr>
<!-- ...end embedded QuickTime file -->
And fourth, for those into smil files, you can swap the URL of the .mov with a smil file playlist, or so I am told, and about to pursue to see if it is in fact true.
Outie and cheers,
-VFB cb