Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 25, 2012, 07:48:26 AM

Pages: [1]   Go Down
  Print  
Author Topic: MP3 player is only workingin FireFox  (Read 3973 times)
andre196
Newbie
*
Offline Offline

Posts: 3


« on: June 05, 2011, 10:48:12 PM »

A section of my site I want to be set up to allow visitors to listen to select MP3 of my music. As of right now the one I am trying to add only works correctly in Firefox. I have it set so that it does not play until the user clicks the pay button, but in Chrome the play bar looks messed up and it auto-plays once the page loads. I.E. 8 doesn't load or play the MP3 at all I was wondering if anyone could let me know what I am doing wrong with my code for my player.

[codebox]<h2>Instrumentals</h2>

<ul>
<li>Universal Soldier MP3-<object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#version=8,5,0,0" width="106" height="15" title="Universal solider">
  <param name="src" value="music/beats/Universal Solider.mp3" />
  <param name="autoplay" value="false" />

  <embed src="music/beats/Universal Solider.mp3" width="106" height="15" pluginspage="http://www.macromedia.com/shockwave/download/" autoplay="false"></embed>
</object>
</li>
</ul>[/codebox]

Here is what the play bar looks like in each browers
Logged
darkwolf
Guest
« Reply #1 on: June 25, 2011, 09:29:03 PM »

This comes down to how different browsers process the same piece of code, and how "compilant" a browser is to standards.

IE is well known for not being compliant.

What you will need to do is research for the exact code each browser uses and then maybe find one type that works for all three.

Alternatively, what some people will do is design different pages for each browser type, and then have the script detect which browser is being loaded and then loads the page needed.

The exact code for above can vary, depending on if you are using html, php, asp, or jsp pages.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: