Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Natao arisiva ity resaka mitohy ity. Mametraha fanontaniana azafady raha mila fanampiana.

music on web page not looping

  • 14 valiny
  • 1 manana an'ity olana ity
  • 149 views
  • Valiny farany nomen'i bobkramer

more options

After adding a second page on my website with music, the looping no longer works. The code is the same on both pages and it use to work when I only had one page with music. The website is: http://www.intrinsiccaptures.com/gallery.html

The code I used is: <embed src="Ave_Maria_Bach.mid" type="application/x-mplayer2" autostart="true" loop="true" volume="100" hidden="true" />

It does loop when IE.

After adding a second page on my website with music, the looping no longer works. The code is the same on both pages and it use to work when I only had one page with music. The website is: http://www.intrinsiccaptures.com/gallery.html The code I used is: <embed src="Ave_Maria_Bach.mid" type="application/x-mplayer2" autostart="true" loop="true" volume="100" hidden="true" /> It does loop when IE.

All Replies (14)

more options

Try loop="1" instead of loop="true"

more options

Thank you for the reply ......I changed the gallery html but it did not solve the problem.

more options

So, does this mean there's no way to make this work correctly in FF?

more options

Sorry, I do not know that. Looping is always a problem with EMBED. Maybe try an OBJECT instead to see if that works.

<object data="(SOURCE)" type="application/x-mplayer2" height="xxx" width="xxx">
  <param name="(NAME)" value="(VALUE)">  // enter parameters for Firefox here
</object>



Another good place to ask questions and advice about web development is at the mozillaZine Web Development/Standards Evangelism forum. The helpers at that forum are more knowledgeable about web development issues. You need to register at the mozillaZine forum site in order to post at that forum. See http://forums.mozillazine.org/viewforum.php?f=25

more options

I appreciate your help ..........is this the code:

<object data=""Ave_Maria_Bach.mid" type="application/x-mplayer2">

 <param name="Ave_Maria_Bach" value="autostart="true" loop="1" volume="100" hidden="true""></object>

Novain'i bobkramer t@

more options

That doesn't work.
You need to create an individual PARAM tag for each of those attributes. You can try a value of "1" instead of "true" if a param doesn't work


<object data="Ave_Maria_Bach.mid" type="application/x-mplayer2">
<param name="filename" value="Ave_Maria_Bach.mid" />
<param name="autostart" value="true" />
<param name="loop" value="true" />
<param name="volume" value="100" />
<param name="hidden" value="true" />
</object>

Novain'i cor-el t@

more options

This is what I added:

<object data=""Ave_Maria_Bach.mid" type="application/x-mplayer2"> <param name="autostart" value="1" /> <param name=" loop" value="1" /> <param name="volume" value="100" /> <param name="hidden" value="true" /> </object>


Now, no music plays at all on FF or IE and a media player is added on IE. (even though it doesn't work) I have changed it back to what I had before .....but would like to find an answer for this if possible.

more options

I had copied the code that you posted above and missed the double quote in the data attribute.
I've modified my above post and added a filename param for IE, so you can give it another try.

Which code did you previously used for IE?

more options

I tried your new code posted above, but got the same results .....no music on either FF or IE. Also on IE it adds a player to the top of the page.

The code I used was:

<embed src="Ave_Maria_Bach.mid" type="application/x-mplayer2" autostart="true" loop="true" volume="100" hidden="true" />


This worked perfectly on FF and IE when I had only one gallery page. When I added the second gallery page, the music played, but did not loop on either gallery page, both on FF and IE.

Novain'i cor-el t@

more options

OK ....I guess I'm stuck with this problem as there doesn't seem to be a fix for it....

So, maybe someone can help with this problem: I use this code <p align="center"> to place things in the center of the page, such as a paypal button. It works for IE and some pages of FF but not all FF pages. Is there another code I can use that will work for both browsers?

Novain'i cor-el t@

more options

FireFox no longer recognizes the loop command, but keep it for IE. Add playcount="99" like so:

<embed src="Ave_Maria_Bach.mid" type="application/x-mplayer2" autostart="true" loop="true" playcount="99" volume="100" hidden="true" />

That should work!

more options

Thank you Lord_Strife, I will give it a try......

more options

This didn't work either .....maybe I'm missing a plug-in that allows me to hear music on FF. Just not sure. But, it shouldn't have to be this difficult for FF users to add or hear music.

I appreciate your time and help.......