You are not logged in.

#1 2015-12-24 15:58:36

[KNS]Kumo
Member
Registered: 2009-11-06
Posts: 62
Website

No sound in HTML5 player (youtube, vine) in Firefox (Solved)

Hi.

Since a couple osf days ago I have some troubles trying to get sound on youtube when browsing on Firefox. I've purged all Pulseaudio debris from my computer and sound works flawless in Chromium (html5) or Firefox (flash) and using other apps, like Mplayer or VLC, as well testing with aplay -D and speaker-test. But I can't make it work on Firefox and HTML5.

I've read the arch wiki about ALSA and several post about the topic but mostly they're old. The most recent here talks about install gst-libav as fixing but doesn't work for me.

The setup is Arch x86_64 and Nvidia sound through HDMI output. Last version of Firefox and all system has been updated just today to be sure.

I've renamed .asoundrc and reconfigured sound globally in /etc/asound.conf

$ cat /etc/asound.conf
-----------------------------
pcm.!default {
    type hw
    card NVidia
    device 9
}

pcm.dsp {
    type plug
    slave.pcm "dmix"
}

Devices:

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia_1 [HDA NVidia], device 0: ALC887 Analog [ALC887 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia_1 [HDA NVidia], device 1: ALC887 Digital [ALC887 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Can anyone point me in the right direction? What else do you need to know?

Last edited by [KNS]Kumo (2016-03-28 18:06:11)


Ore wa Kumo Da!
http://knsweb.net

Offline

#2 2015-12-26 03:18:50

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

Firefox does not care about your .asoundrc. Either use a conf in modprobe.d to fix the card you want to use with it as the first card (hw:0), or use pulseaudio.

EDIT: since you are trying to use a sub-device that is not hw:0,0, pulseaudio is your only option

Last edited by tom.ty89 (2015-12-26 03:20:23)

Offline

#3 2015-12-26 09:27:36

[KNS]Kumo
Member
Registered: 2009-11-06
Posts: 62
Website

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

The problem is:

- It had been working until some days ago, without Pulse.
- It isn't Firefox, is just Firefox +HTML5 player. Other sounds like flash players are working.


Ore wa Kumo Da!
http://knsweb.net

Offline

#4 2015-12-26 09:52:12

tom.ty89
Member
Registered: 2012-11-15
Posts: 897

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

I don't know if mozilla has ever bother to fix firefox support on alsa confs, but yes it doesn't work with ALSA here as well IF an alsa conf exist. IIRC it simply ignored all the confs in the past, but now it seems that a conf somehow blocked it from outputing to any device, including hw:0,0.

Offline

#5 2016-01-20 16:39:27

Maeda
Member
Registered: 2015-02-17
Posts: 44

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

That means if someone (like me big_smile) don't have pulseaudio, only alsa and is not using the hw0,0, the problem will only be solved by Mozilla ?

Offline

#6 2016-01-20 19:05:17

[KNS]Kumo
Member
Registered: 2009-11-06
Posts: 62
Website

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

Maeda wrote:

That means if someone (like me big_smile) don't have pulseaudio, only alsa and is not using the hw0,0, the problem will only be solved by Mozilla ?

Don't think so.

I still have the problem:

Just ALSA, no Pulseaudio.
Firefox + Digitally Imported = OK
Firefox + Youtube = KO
Chromium + Youtube = OK
Mplayer = OK

Any ideas?


Ore wa Kumo Da!
http://knsweb.net

Offline

#7 2016-01-21 16:36:26

Maeda
Member
Registered: 2015-02-17
Posts: 44

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

I'm interested in the solution too, as I have similar configuration (no pulseaudio, only alsa, and firefox html5 videos don't output any sound).

Offline

#8 2016-03-28 18:05:43

[KNS]Kumo
Member
Registered: 2009-11-06
Posts: 62
Website

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

I've deleted all my asounds related files (etc/asound.conf and .asoundrc) and then created a new /etc/asound.conf with the following lines:

defaults.ctl.card 1
defaults.pcm.card 1
defaults.pcm.device 9

Card and device may be different depending of your system. Then rebooted my system.

I don't know if something more has changed (maybe an update or something) but now it works.


Ore wa Kumo Da!
http://knsweb.net

Offline

#9 2016-05-28 12:08:42

Maeda
Member
Registered: 2015-02-17
Posts: 44

Re: No sound in HTML5 player (youtube, vine) in Firefox (Solved)

Solved too thanks to alsa IRC helpers. I need to edit my .asoundrc, and add a "type plug" :

pcm.!default {
    type plug
    slave.pcm "hw:yourhardware"

Offline

Board footer

Powered by FluxBB