You are not logged in.

#1 2014-02-22 00:00:35

Xik
Member
Registered: 2014-02-07
Posts: 6

[SOLVED] No HTML5 Audio output in Firefox

Hi folks, it seems I don't have any HTML5 audio output within Firefox and was hoping I could get some advice. Here's a run down of the situation:

  • Everything is unmuted in alsamixer.

  • Audio works through ALSA with every other application I've tried such as moc, vlc, mplayer etc.

  • I have an .asoundrc file which correctly sets the default and an alias for another card. I use it to switch audio when using mplayer sometimes.

  • I've used various HTML5 test pages that report audio tag and and playback is working.

  • Firebug console never reports any errors when trying to play audio within a page.

  • I've done a fair bit of searching but the documented solution is almost always to setup an .asoundrc config file, but I already have one.

Last edited by Xik (2014-02-22 14:04:25)

Offline

#2 2014-02-22 00:12:44

Rasi
Member
From: Germany
Registered: 2007-08-14
Posts: 1,914
Website

Re: [SOLVED] No HTML5 Audio output in Firefox

of course you have all the gstreamer0.10-plugins installed...


He hoped and prayed that there wasn't an afterlife. Then he realized there was a contradiction involved here and merely hoped that there wasn't an afterlife.

Douglas Adams

Offline

#3 2014-02-22 00:18:00

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] No HTML5 Audio output in Firefox

See the optional dependencies: https://www.archlinux.org/packages/extr … 4/firefox/
What's the output of

pacman -Qs  gst

Offline

#4 2014-02-22 02:32:08

Xik
Member
Registered: 2014-02-07
Posts: 6

Re: [SOLVED] No HTML5 Audio output in Firefox

Rasi wrote:

of course you have all the gstreamer0.10-plugins installed...

Of course!

karol wrote:

See the optional dependencies: https://www.archlinux.org/packages/extr … 4/firefox/
What's the output of

pacman -Qs  gst
local/gstreamer0.10 0.10.36-3
    GStreamer Multimedia Framework
local/gstreamer0.10-bad 0.10.23-7
    GStreamer Multimedia Framework Bad Plugin libraries (gst-plugins-bad)
local/gstreamer0.10-bad-plugins 0.10.23-7 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Bad Plugins (gst-plugins-bad)
local/gstreamer0.10-base 0.10.36-2
    GStreamer Multimedia Framework Base plugin libraries
local/gstreamer0.10-base-plugins 0.10.36-2 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Base Plugins (gst-plugins-base)
local/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins)
    Gstreamer FFMpeg Plugin
local/gstreamer0.10-good 0.10.31-4
    GStreamer Multimedia Framework Good plugin libraries
local/gstreamer0.10-good-plugins 0.10.31-4 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Good Plugins (gst-plugins-good)
local/gstreamer0.10-ugly 0.10.19-9
    GStreamer Multimedia Framework Ugly plugin libraries
local/gstreamer0.10-ugly-plugins 0.10.19-9 (gstreamer0.10-plugins)
    GStreamer Multimedia Framework Ugly Plugins (gst-plugins-ugly)

Offline

#5 2014-02-22 05:37:34

henriqueleng
Member
Registered: 2014-02-18
Posts: 77

Re: [SOLVED] No HTML5 Audio output in Firefox

Hi, this happen with me today!

I configured alsa with asound.conf ot .asoundrc simple setting my default audio card as list in the last method on wiki! Creating a asound.conf file that is the same than .asoundrc!
So i discovered that with this method you only can use your audio card with one stream, if you open music player and you are playing something, you only will listen one audio (AND FIREFOX DOESNT WORK).

The solution is use the first method listed on wiki (this link) .

Setting the default audio card using the kernel modules, with a file in modprobe.d.

Use

 $ cat /proc/asound/modules 

to get the loaded sound modules and their order and put in the file like in wiki, changing the modules with the ones you want!

See wath i did in my post (this link)

I know its a long post, but probaly will solve you problem. Please dont base your file in my files. My conf files has been made to my audio card, maybe you will need to change the modules in the conf file.

I hope you can!


Emacs - tmux - Cmus - Mutt - Lynx/w3m - ....

Offline

#6 2014-02-22 14:03:59

Xik
Member
Registered: 2014-02-07
Posts: 6

Re: [SOLVED] No HTML5 Audio output in Firefox

Thanks for the input henriqueleng, you made me investigate the way I set the default soundcard. It turns out deleting the config file solves the issue in Firefox. The system automagically made my Intel card the default, there was no need to specify it in asoundrc or mess around with modprobe (although I did do that and tested that it worked).

But that left me in the position of having no alias for the HDMI output.  I used it as an ALSADevice argument for moc so I can specify on the fly if I want to suddenly output moc through HDMI. I tried using my config file, but removed the default device entry and I now get the best of both worlds. The system sets the default device by itself, but I also have named devices for manually passing to applications. Thanks henriqueleng.

Last edited by Xik (2014-02-22 14:06:13)

Offline

Board footer

Powered by FluxBB