Camen Design Forum

Delete

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

To delete this post you must be either the original author or a designated moderator.
The content of the post will be removed but the name and date will remain.

  • The post will be removed completely from the thread, rather than blanked
  • Only posts on the last page of the thread can be removed completely (so as to not break permalinks)

RE[3]: 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).

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn