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 ..
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
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?