Sound in Firefox

Posted on 2006-06-01
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

    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

    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

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

    Expert Comment

    i suggest you wrap your music on a flash file.

    or you may try
    LVL 14

    Accepted Solution

    >>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):

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
    Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
    The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    760 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

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now