Camen Design Forum

Firefox and OGG

theraje

Actually, I'm wondering if I'm just doing something completely wrong. I can't get WAV, MP3, or OGG files to play in Firefox at all. When I use (new Audio()).canPlayType("audio/ogg; codecs=vorbis"), I get "probably." But when I try to play any audio file, nothing happens.

I have verified that the audio constructor is returning an audio element (I am creating audio elements dynamically, FYI), with the src set correctly, but no sound is audible. Sound works fine elsewhere. But, for some reason, sound WILL NOT play on the page I'm working on. (It seems I'm just really good at failing.)

:: @theraje added on 16 Apr ’14 · 10:09

From what I can tell, the audio is loading. It is technically "playing" (I set currentTime to 0, use the play function, and the currentTime changes to 3.whatever, which seems right), I just hear no sound. With the OGG, MP3, and WAV. No sound, whatsoever, but everything else seems as it should be.

I know that there isn't a sound problem with my laptop or with Firefox, as other Web sites (YouTube and such) play sound fine. The sound files play fine when I open them in other audio programs. But I guess I truly just was never cut out to do this type of stuff (which may explain why I've gotten nowhere with it in the 15 years I've been trying).

Append

(Leave this as-is, it’s a trap!)

Only the original author or a moderator can append to this post.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn