Flash is the industry standard. It's virtually guaranteed to be installed. QT is not so universally available. However, Apple - the author of QT has elected not to support Flash in its new iWhatever products, at least for now. They may change that and a workaround and/or workarounds are already available for at least some, perhaps all of their new iStuff.
So, why you would even want to do this is beyond me. I might want to detect these iWhatever OS's and serve them QT. But I might also elect not to cater to Apple's iNonsense and let iWhatever users figure out a way to get the content, complain to Apple, or both.
So be aware that if you proceed with this, you will likely be losing audience overall (a large number of the vast majority of non iPhone/Pad users), albeit making it easier for iDiots to hear the audio.
A sensible approach would be the branching mentioned above so that all could hear it in the format best suited/allowed.
However, since you asked, the QT code in your post is a mishmash. There are no flashvars in QT. And you're not showing a movie.
Googling:
quicktime object tag mp3
I got this:
Code:
<object type="audio/x-mpeg" data="http://www.drnooriy.com/quranshop/product_images/sample_Surah%20Al-Jinn.mp3"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="290" height="20">
<param name="src" value="http://www.drnooriy.com/quranshop/product_images/sample_Surah Al-Jinn.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
<!--[if !IE]> <-->
<object type="audio/x-mpeg" data="http://www.drnooriy.com/quranshop/product_images/sample_Surah%20Al-Jinn.mp3" width="290" height="20">
<param name="src" value="http://www.drnooriy.com/quranshop/product_images/sample_Surah Al-Jinn.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
</object>
<!--> <![endif]-->
</object>
It's not standard according to the w3c, but does work for the various PC browsers, and presumably would for iPhone/Pad.
I suppose it would translate to, in your PHP code as:
PHP Code:
<!DOCTYPE html>
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<object id="audioplayer1" type="audio/x-mpeg" data="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="290" height="20">
<param name="src" value="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
<!--[if !IE]> <-->
<object type="audio/x-mpeg" data="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" width="290" height="20">
<param name="src" value="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
</object>
<!--> <![endif]-->
</object>
<?PHP } ?>
<?PHP } else { ?>
<object id="audioplayer2" type="audio/x-mpeg" data="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3"
classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="290" height="20">
<param name="src" value="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
<!--[if !IE]> <-->
<object type="audio/x-mpeg" data="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" width="290" height="20">
<param name="src" value="<?php echo $svr_urlscript; ?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" />
<param name="controller" value="true" />
<param name="autoplay" value="false" />
<param name="autostart" value="0" />
<param name="pluginurl" value="http://www.apple.com/quicktime/download/" />
</object>
<!--> <![endif]-->
</object>
</body>
</html>
Bookmarks