Sound in Firefox

Posted on 2006-06-01
Medium Priority
Last Modified: 2013-11-18
Probably a simple Question.

This works in IE but not FireFox
<bgsound src=Sound/music.mp3 loop=infinite>

I need a good cross browser sound code. I see may for Netscape and IE but what about FireFox.

Does the end user have to down load plugins for this? ( if so he will never hear my sound because he wont know the diference) so is there a sure way to make this work every time?? (netscape is not so common nowdays)
Question by:WayneFischer
LVL 10

Expert Comment

ID: 16812191
There's no universal way to force sound to play on every browser.  And most people are happy about this.  You can use tricks to 'suggest' that browsers play sound, but no way to enforce it.

Author Comment

ID: 16812227
Is there any code specific to FireFox Like <bgsound src=Sound/music.mp3 loop=infinite>? FireFox is what will be used the most on my program. ( or is it totaly plugin dependant) if so what is the best plugin for FireFox?
LVL 10

Expert Comment

ID: 16812297
Plugin dependent.  And also OS dependent.  What works for Firefox on Windows won't necessarily work for firefox on Mac
LVL 30

Expert Comment

ID: 16813952
i suggest you wrap your music on a flash file.

or you may try

LVL 14

Accepted Solution

Esopo earned 1000 total points
ID: 16828885
>>Does the end user have to down load plugins for this?<<
Yes. Whether you end up using Flash or embedding the content inside <object> or <embed> tags, the player is bound to be a plugin.

- Inserting media using the non-standard embed tag (and why):

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

807 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question