How to get Audio html5 tag to work in Firefox

Hi guys, I'm having a really annoying problem, in which HTML5 audio tags either do not work at all in Firefox; they have a huge delay before playing, or they play (but with many errors and inconsistencies).
I'm using Firefox 35.0
I'm using ONLY .ogg files
Here is an example of my code:
<pre><nowiki><audio autoplay="autoplay" controls="controls" id="audio" style="display:none;">
<source src="Music.ogg"
type='audio/ogg'>
</audio>
<script>
myAudio=document.getElementById('audio');
myAudio.addEventListener('canplaythrough', function() {
this.currentTime = 1;
this.play();
</script></nowiki></pre>
The code is working on both Internet Explorer and Chrome.
When I remove the display:none attribute, the audio player is visible.

Hi there, I appreciate the response. Fortunately, I just figured out what the cause of the problem was!
For some reason, the Javascript I was using broke the sound in Firefox. Without the script part, the sound works fine.
This creates a couple of new functionality problems, but they don't have anything to do with Firefox.
Thanks for helping me, hopefully I'll be able to find some way to keep the functionality but have it work in FF.

Similar Messages

  • How to get audio on a nc4010 working on windows seven for now it only produces formed sound.

    Have gotten the original driver from the support site and installed it manualy wich it does and the sound does work. But I wont get the normal sound. It sounds deformed it cann't play any mp3 since they sound completly rotten, however youtube does it bearely clear but it does let the deformed sound hear every now and then (also depends on the movie!!)

    Did you try modifying an XP driver to see if that works?
    Try modifying one of these...
    http://catalog.update.microsoft.com/v7/site/search.aspx?q=ali%20audio
    Hopefully there is a way to make it work. I helped a person get W7 audio to work on an older PC than yours.
    See this post.  Different driver unfortunately, but the idea is the same as you know.
    http://h30434.www3.hp.com/t5/Notebook-PC-Sound-and-Audio/Conexant-Audio-Driver-for-Windows-7/td-p/73...
    Paul

  • How to get audio to an overhead projector from iPad

    Hello All. Has anyone figured out how to get audio from ipad to an overhead projector? I know I could mirror if I had HD, but I do not have HD at work.

    U could try using the headphone jack sound can be output through this using the appropiate cord to connect to your projector.

  • How to get audio into Adobe Premiere Elements 12?

    How to get audio into Adobe Premiere Elements 12?
    I have filmed an air show with a very good camera JVC pro
    And when I pick up the clips in Adobe Premiere Elements 12, it works too, but only without sound.
    I think I tried everything for 4 days now.
    Sound in my computer works perfectly
    I go to where the video files are located and try to run them in VLC or in Nero Kwik so it works fine with both audio and video.
    I have checked the sound card.
    Yes, I have tried everything so now I'm so tired of this lousy so I'm ready to throw this program at the dump.
    It's not normal if you will keep on producing audio for over 4 days at Adobe
    The old Elements 9 worked fine. Offer some of would consider developing it again. I do not know how I should do.
    My name is Thore Hult
    live in Karlshamn in Sweden

    Thore Hult
    On what computer operating system is your Premiere Elements 12 working on? Have you updated it from 12 to 12.1 Update using an opened project's Help Menu/Update. If not, please do so.
    For your immediate problem.
    What is the model/settings for the JVC camera that recorded you video. I want to get at the properties of your source video including the file extension.
    Since you are getting video, but no audio, please download and install the free codec utility named GSpot to see what is shows
    for your Audio Name and Status.
    http://www.headbands.com/gspot/
    The other properties of the file there would also be of interest.
    When you import your source file into the project, do you see any "conforming" activity going in a progress bar at the bottom right corner of the workspace?
    If so, do you wait for it to complete before you move forward in the project?
    Can you get sound in any of your Premiere Elements projects with this current JVC file or other?
    Can we assume that your troubleshooting has included checking
    a. Volume control within the project
    b. Edit Menu/Preferences/Audio Hardware ASIO
    Let us start here and then we can decide what next if necessary.
    Thanks.
    ATR

  • How can I get the right click to work in firefox -- it works in internet explorer

    how can I get the right click to work in firefox -- it works in interne

    Try the Firefox SafeMode to see how it works there. <br />
    ''A troubleshooting mode, which disables most Add-ons.'' <br />
    ''(If you're not using it, switch to the Default Theme.)''
    * You can open the Firefox 4/5/6/7 SafeMode by holding the '''Shft''' key when you use the Firefox desktop or Start menu shortcut.
    * Or use the Help menu item, click on '''Restart with Add-ons Disabled...''' while Firefox is running. <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    ''To exit the Firefox Safe Mode, just close Firefox and wait a few seconds before using the Firefox shortcut (without the Shft key) to open it again.''
    If it is good in the Firefox SafeMode, your problem is probably caused by an extension, and you need to figure out which one. <br />
    http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes

  • How to get the anchor tag values in next jsp

    Hey all,
    I have two jsp files.
    in first jsp,
    I am getting the resultset.
    I am setting the resultset to the anchor tag.
    below is the code...
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp"><%=rSet.getString(1) %></a></td>
    whenever he click on any anchor tag,
    It will goes to ACSMasterTwo.jsp page for edit the compleate record.
    how to get the anchor tag value in that page...
    Please help me on this.

    You have to pass a parameter. An id is good.
    Of course you have to get an id from somewhere in the result set right?
    <a target="_top" rel="contents" rev="contents" class="fordynamiclabel" href="ASCMasterTwo.jsp?id=<%= rSet.getString("id") %>"><%=rSet.getString(1) %></a></td>Then you call
    request.getParameter("id");
    and look up the values related to that id in the database.

  • How to get micro sd card to work

    how to get micro sd card to work.. my phone says total space 7.40GB for sSD card and that's whats available. I put a micro SD card in but no change?

    You put the card in and go to settings and go to storage and scroll down to sd card and click mount ad card

  • How to get imac 27 inch to work with asus triple mionitors to work through matro triple head 2 go

    how to get imac 27 inch to work with asus triple mionitors to work through matro triple head 2 go

    I think I got a little ahead of myself explaining my problem, so let me clarify...
    Only the one iMac is having the network file deletion problem, but it is included in the network user logon problem.  So 4 out of 5 of the iMacs have had or are having logon problems with network users accounts using mobile accounts on the systems.  2 of the 4 I have wiped and started over on and the other 2 have different network accounts being used by the primary system users.  The 5th iMac has not caused any problems except I forgot to mention that the USB on it seems flaky.
    So we are apparently full of problems. 

  • Does anyone know how to get an animated screen saver working

    Hi I have a imac desktop not even a year old.  Does anyone know how to get an animated screen saver working please. Its a gimp screen saver and is it safe to use on my mac? 

    Go to the website from where you got the screensaver from and read its system requirements and instructions for installation. 

  • How to get out of full screen mode in Firefox 4?

    How to get out of "Full Screen Mode" in firefox 4 ?

    Pressing the F11 should do it.

  • Can anyone tell me how to get rid of Cookies in Safari and Firefox?

    Can anyone tell me how to get rid of Cookies in Safari and Firefox?
    Am using Mountain Lion MacBook Pro  Thanks

    Firefox/Preferences/Privacy - small blue type.

  • How to get audio to play on Ipad using flash cc html5 canvas

    I'm using flash cc html5 project type. I built my project and tested on desktop and it works fine. Once test on ipad it does not play the audio. It works on android  devices but not my ipad 4. I'm using Mp3 files in my flash project.
    I tried the safari & Chrome on my Ipad neither played the audio in my file.
    Links to my files.
    http://dev.wisc-online.com/prototypes/TestJosh/cis3405_html5.html
    http://dev.wisc-online.com/prototypes/TestJosh/cis3405_html5.js

    Thanks I read through that. I still cant determine what exacty my issue is.
    Is it audio must be played only on a click handler?
    Is it that i must install quick tiem on my ipad?
    So i have to modify code that flash outputs for me to get audio to play on an Ipad? That doesnt seem correct? It should just function.

  • How to get audio to work on tv from computer

    Ok so i just bought this desktop. I want to hook it up to the tv so i got the DVI-D to HDMI cable and i also hooked up the audio cable (the one with the red and white plugs on the end) as the instruction in the tv manual said It didn't say anything about the setting it just said to make sure it was hooked into HDMI2 which i did. But i still can't get audio to play on the tv. I even checked the enable/disable devices in the sound option its only the one thing and it says its enabled. I'm not sure what else to do. I got the DVI-D to HDMI and audio cable because i didn't want to have to install an hdmi port (also idk if it would have enought space for one) Am I missing something? this is the link for the desktop i bought. http://www.bestbuy.com/site/hp-slimline-desktop-intel-pentium-4gb-memory-1tb-hard-drive-black/7117169.p?id=1219668751581&skuId=7117169&cmp=RMX

    Hi, HDMI carries sound but DVI does not carry sound. You need another cable from line out or headphones to your TV OR you can use something like:     http://www.walmart.com/ip/Startech-DVI-to-HDMI-Video-Converter-with-Audio-Universal/19339016    http://www.walmart.com/ip/DVI-R-L-Stereo-Audio-to-HDMI-Converter/40500619    http://www.svideo.com/dviaudio2hdmi.html Regards.

  • How to get audio frequency

    hello
    This is sudhakar
    working as a programmer on Java
    now we are implementing audio recording and playing..
    but here we are facing one problem..
    that is .
    how to get the audio frequency...that is pitch but
    it variate the pitch which during the play...
    if any sample code please send them..
    j.sudhakar

    If you want to implement an amplifier like most Players have,
    that's not that easy. You will have to look for "Discrete Fourier Analysis" I think. You will have to deal with imaginary values (that is the square root of -1), if you want to write the functions up from the scratch.
    Perhaps there are some prewritten function, you can use.
    Good luck
    Djamal

  • How to get audio clips to play at site but not actually download?

    Would like person to be able to listen only to audio clips but not to be able to download clip to add to their iTunes library. In other words, am selling an audio product, and while I'd like people to be able to hear samples at my site (built with iweb), I don't want them to retain clip. Any suggestions on how to accomplish this would be much appreciated!

    Stopping people from downloading anything that's published to the internet is virtually impossible.
    I would recommend that you first edit your files so that you only have about a one minute clip online....
    http://www.iwebformusicians.com/AudioFiles/Import.html
    Dragging you files onto the iWeb page is not the best way to present them as a large percentage of PC users won't be able to play them. The Wordpress standalone flash player is still about the best way to play audio and you have to know how to get into the source code to be able to download the files....
    http://www.iwebformusicians.com/MusicPlayers/FlashPlayers.html
    Or use a flash jukebox....
    http://www.iwebformusicians.com/Website-Music-Movies/Flash-Audio-Jukebox.html
    For the increasing number of people using iPhone/iPad you can use this dual player....
    http://www.iwebformusicians.com/Website-Music-Movies/Wordpress-Flash-HTML5-Audio .html
    or have an alternative page using HTML5 players.....
    http://www.iwebformusicians.com/Website-Music-Movies/HTML5-Audio-Player.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

Maybe you are looking for