X
Tap here to go to the mobile version of the site.
Your Firefox is out of date and may contain a security risk! Upgrade Firefox

Support Forum

I can not get a music piece to play on a website in a loop

Posted

I am making a prayer memorial for 3000 people and have to have a page that plays music in the background as the page advances in a scroll it command. I feel like I have tried everything, changed the music into several formats and just can not figure out why it will work on explorer and not on mozilla. Please help me. I have to have this complete for a prayer service tomorrow.. Here is the page:

www.mssingmcstay.com

Additional System Details

Installed Plug-ins

  • Shockwave Flash 11.5 r502
  • Next Generation Java Plug-in 10.11.2 for Mozilla browsers
  • NPRuntime Script Plug-in Library for Java(TM) Deploy
  • The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
  • Google Update
  • RealPlayer(tm) LiveConnect-Enabled Plug-In
  • RealPlayer Download Plugin
  • Adobe PDF Plug-In For Firefox and Netscape 11.0.01
  • VLC media player Web Plugin 2.0.2
  • RealNetworks(tm) RealDownloader Chrome Background Extension Plug-In
  • RealNetworks(tm) RealDownloader PepperFlashVideoShim Plug-In
  • RealNetworks(tm) RealDownloader HTML5VideoShim Plug-In
  • RealDownloader Plugin
  • 4.1.10329.0
  • NPWLPG
  • Wacom Dynamic Link Library
  • The plug-in allows you to open and edit files using Microsoft Office applications
  • Office Authorization plug-in for NPAPI browsers

Application

  • User Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/20100101 Firefox/18.0

More Information

the-edmeister
  • Top 10 Contributor
  • Moderator
3202 solutions 24452 answers

Is this the correct URL?
http://www.missingmcstay.com/

See if this helps you.
http://kb.mozillazine.org/Background_music_does_not_play

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97036 answers

Seems to be working for me on Linux.

I'm not sure if embed supports the loop parameter, so you may need to use the <object> tag instead and specify a large loop count.

<EMBED SRC="prayers4.wma" type="audio/mpeg" HIDDEN="true" AUTOSTART="true" LOOP="true">

<object data="prayers4.wma" type="application/x-mplayer2">
<param name="filename" value="prayers4.wma">
<param name="autostart" value="1">
<param name="loop" value="99">
</object>

Question owner

I am trying this now and will let you know if it works. I am downloading quicktime first. The link is exact and the link I put up for Mozilla and chrome, Mozilla starts the song but cut it in mid stream. It did seem as if the loop parameter wasn't working so I appreciate that statement. Will let you know shortly. Thank you in advance for taking the time to reply. I hope this does it.  ::smile::

debbie

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97036 answers

The above posted type="application/x-mplayer2" will make Firefox use the Windows Media Player plugin to play the file.
That plugin is probably more common than the QuickTime plugin, so you can consider this change.

Question owner

First let me please offer my appreciation for the ability to ask and get an answer to a problem. I was able to get "something" to work, but certainly not right away. For some reason this seems to be a "problem" addition on Firefox. One correction asked me to update Quicktime which I did and then I went with the correction offered by cor-el. The music played but did not loop and sadly, will not work at all in internet explorer. It did ask for a download of the player, which gave me sound.

Here is the working sample: www.missingmcstay.com/indexmoz.html. You will see what i mean about it not repeating. I spent a great deal of time looking for HTML or Javascript code or PHP code which would allow me to write pne scolling page and play music. I find it amazing I could not do this.

The day of prayer is almost over....but again, how nice of you to help.

Question owner

I should have started earlier, who knew?  ::smile:: Thank you debbie

cor-el
  • Top 10 Contributor
  • Moderator
10783 solutions 97036 answers

You currently have two players specified in the linked page that you posted and I hear them both (echo)

You only need one of them and you also need to make a choice which player you want to use by specifying a type attribute that is supported by a player (see about:plugins) I would assume that the Windows Media Player is able to play the second (object) tag properly once installed (I use MPlayer on Linux).
The Windows Media Player plugin for Firefox doesn't show in your system details list, so if you haven't installed this plugin yet, then give it a try to see if that works for you.

<EMBED SRC="prayers4.wma" type="audio/mpeg" HIDDEN="true" AUTOSTART="true" LOOP="true">
<object data="prayers4.wma" type="application/x-mplayer2">
<param name="filename" value="prayers4.wma">
<param name="autostart" value="1">
<param name="loop" value="99">
</object>

A good place to ask 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.