Advanced Search

Page 2 of 2 FirstFirst 12
Results 11 to 11 of 11

Thread: use Quicktime player instead of Flash mp3 player

  1. #11
    Join Date
    Sep 2011
    Posts
    35
    Thanks
    8
    Thanked 0 Times in 0 Posts

    Default

    Ahh i got the solution . i download source of php browser and from this code firstly i detect browser type and after that if user came from ipad, iphone or from safari than quick time player will worked but if user connect from internet explorer or Mozilla Firefox than flash player will worked. Thanks to john and daniel who helped me to figure out this issue

    This is source code:

    PHP Code:
    <object type="application/x-shockwave-flash" data="<?php echo $svr_urlscript?>/player.swf" id="audioplayer2" height="24" width="290">
      <param name="movie" value="<?php echo $svr_urlscript?>/player.swf" />
      <param name="FlashVars" value="playerID=audioplayer1&soundFile=<?php echo $svr_urlscript?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3" />
      <param name="quality" value="high" />
      <param name="menu" value="false" />
      <param name="wmode" value="transparent" />
      </object>
    <?PHP ?>
    <?PHP 
    } else { ?>
    <?php
    require_once('dbrowser.php'); // assuming Browser.php is in the same path as this script
    $browser = new Browser();
    if( 
    $browser->getBrowser() == Browser::BROWSER_IE || $browser->getBrowser() == Browser::BROWSER_FIREFOX|| $browser->getBrowser() == Browser::BROWSER_CHROME) {?>
    <object type="application/x-shockwave-flash" data="<?php echo $svr_urlscript?>/player.swf" id="audioplayer1" height="24" width="290">
    <param name="movie" value="<?php echo $svr_urlscript?>/player.swf">
    <param name="FlashVars" value="playerID=audioplayer1&soundFile=<?php echo $svr_urlscript?>/product_images/sample_<?php echo $rowx[TITLE]; ?>.mp3">
    <param name="quality" value="high">
    <param name="menu" value="false">
    <param name="wmode" value="transparent">
    </object> 
    <?PHP } else {?>
    <OBJECT CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" WIDTH="290"HEIGHT="24"
    CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab">
    <PARAM name="SRC" VALUE="http://www.drnooriy.com/quranshop/quran_surah/test.mp3">
    <PARAM name="AUTOPLAY" VALUE="true">
    <PARAM name="CONTROLLER" VALUE="true">
    <EMBED src="http://www.drnooriy.com/quranshop/quran_surah/test.mp3" WIDTH="290" HEIGHT="20" 
    AUTOPLAY="true" CONTROLLER="ture" 
    PLUGINSPAGE="http://www.apple.com/quicktime/download/">
    </EMBED>
    </OBJECT>
    <?php }} ?>
    Last edited by salman1karim; 09-14-2011 at 08:02 PM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •