Problem with mp3 flash embed in IE

Discussion in 'PHP' started by shrinath, Dec 18, 2010.

  1. #1
    I run a mp3 search engine php website.The embed code works in Firefox browser but not in IE and Chroom.

    Here is code that works fine in Firefox but prob with IE,chroom..:(

    
    
    <p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="490" height="86" id="SongsOnline" align="middle">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="flashvars" value="file=http://dc238.4shared.com/img/437291440/592001b6/dlink__2Fdownload_2FMPOXByBa_3Ftsid_3D20101218-132231-413e5c94/preview.mp3" />
    <param name="movie" value="http://songsonline.in/flash/omp3.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /><param name="bgcolor" value="#ffffff" /><embed src="http://songsonline.in/flash/omp3.swf" flashvars="file=http://dc238.4shared.com/img/437291440/592001b6/dlink__2Fdownload_2FMPOXByBa_3Ftsid_3D20101218-132231-413e5c94/preview.mp3" quality="high" wmode="transparent" bgcolor="#000000" width="490" height="86" name="SongsOnline" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
    </object></p>
    
    
    Code (markup):

    Please help ..
     
    shrinath, Dec 18, 2010 IP
  2. shofstetter

    shofstetter Well-Known Member

    Messages:
    178
    Likes Received:
    7
    Best Answers:
    1
    Trophy Points:
    120
    #2
    you should use javascript to detect platform/browser type and use that to choose a player.
    ex: for internet explorer you could embed a windows media player object for chrome and safari you could use the html5 <audio> tag and for firefox you could use your flash object
     
    shofstetter, Dec 18, 2010 IP
  3. MyEasyCpa

    MyEasyCpa Peon

    Messages:
    336
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yeh, use javascript
     
    MyEasyCpa, Dec 18, 2010 IP
  4. shrinath

    shrinath Well-Known Member

    Messages:
    275
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    100
    #4
    Hey Thanks for reply,

    The problem is with only for files which are uploaded on 4shared.com,It will not play in swf player.
    It works fine for other hosted files,works in all browser.

    I use plugin like this:

    anything wrong with this code?
     
    shrinath, Dec 18, 2010 IP
  5. Voynex

    Voynex Peon

    Messages:
    31
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Try the SWFObject JavaScript for example.
     
    Voynex, May 19, 2011 IP
  6. runbrun11

    runbrun11 Member

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    38
    #6
    see this: http://www.puidokas.com/how-to-properly-embed-flash/
     
    runbrun11, May 22, 2011 IP