You are not logged in.

#1 2013-12-29 23:49:18

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

No sound with flash through chromium or google-chrome-stable

I set up ALSA with snd_usb_audio, and it works with Firefox and other applications like vlc. However, I can't get any sound from chromium or google-chrome-stable. I installed the pepper flash plugin, enabled it in chrome://plugins, and disabled the regular flash plugin, but this didn't work. Also, I'm using a 64-bit HP laptop.

Last edited by smlance (2013-12-30 00:20:36)

Offline

#2 2013-12-30 01:11:00

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: No sound with flash through chromium or google-chrome-stable

Are you using Pulseaudio?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#3 2013-12-30 13:34:02

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

Re: No sound with flash through chromium or google-chrome-stable

Yes. Here's a bit of system information:

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: LX3000 [Microsoft LifeChat LX-3000], device 0: USB Audio [USB Audio]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 2: Generic_1 [HD-Audio Generic], device 0: 92HD87B1/3 Analog [92HD87B1/3 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

lsmod | grep snd

snd_usb_audio         117084  3 
snd_usbmidi_lib        19795  1 snd_usb_audio
snd_rawmidi            18710  1 snd_usbmidi_lib
snd_seq_device          5188  1 snd_rawmidi
snd_hda_codec_idt      37852  1 
snd_hda_codec_hdmi     30162  1 
snd_hda_intel          36904  5 
snd_hda_codec         150305  3 snd_hda_codec_hdmi,snd_hda_codec_idt,snd_hda_intel
snd_hwdep               6340  2 snd_usb_audio,snd_hda_codec
snd_pcm                77709  5 snd_usb_audio,snd_hda_codec_hdmi,snd_hda_codec,snd_hda_intel
snd_page_alloc          7242  2 snd_pcm,snd_hda_intel
snd_timer              18726  1 snd_pcm
snd                    59141  26 snd_usb_audio,snd_hwdep,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_idt,snd_pcm,snd_rawmidi,snd_usbmidi_lib,snd_hda_codec,snd_hda_intel,snd_seq_device
soundcore               5450  1 snd
usbcore               180136  10 btusb,snd_usb_audio,uvcvideo,ohci_hcd,ohci_pci,snd_usbmidi_lib,ehci_hcd,ehci_pci,usbhid,xhci_hcd

Last edited by smlance (2013-12-30 17:56:28)

Offline

#4 2013-12-30 19:59:59

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: No sound with flash through chromium or google-chrome-stable

I believe ewaller was asking you if you are a pulseaudio user because you need additional pulse packages for sound to work correctly in pepperflash. In the optdepends for chromium-pepper-flash-stable there is:

Optional Deps  : pulseaudio-alsa: For PulseAudio users

is that ^^ installed? I have a couple other packages installed other than that one not sure if they are related / relevant:

extra/libcanberra-pulse 0.30-4 [installed]
multilib/lib32-libpulse 4.0-6 [installed]
multilib/lib32-alsa-lib 1.0.27.2-1 [installed]
multilib/lib32-alsa-plugins 1.0.27-1 [installed]

Offline

#5 2013-12-30 20:14:37

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 19,774

Re: No sound with flash through chromium or google-chrome-stable

dodo3773 wrote:

I believe ewaller was asking you if you are a pulseaudio user because you need additional pulse packages for sound to work correctly in pepperflash.

Why, yes I was smile  Thanks for keeping the loop closed.  My presence on the forums is hit and miss over the holidays.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#6 2013-12-30 20:22:01

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

Re: No sound with flash through chromium or google-chrome-stable

dodo3773 wrote:

I believe ewaller was asking you if you are a pulseaudio user because you need additional pulse packages for sound to work correctly in pepperflash. In the optdepends for chromium-pepper-flash-stable there is:

Optional Deps  : pulseaudio-alsa: For PulseAudio users

is that ^^ installed? I have a couple other packages installed other than that one not sure if they are related / relevant:

extra/libcanberra-pulse 0.30-4 [installed]
multilib/lib32-libpulse 4.0-6 [installed]
multilib/lib32-alsa-lib 1.0.27.2-1 [installed]
multilib/lib32-alsa-plugins 1.0.27-1 [installed]

I originally only had pulseaudio-alsa installed. Now I have all the others installed, and I have rebooted and reinstalled chromium, chromium-pepper-flash-stable, and google-chrome-stable, but Flash still doesn't play audio on chromium or google-chrome-stable. Flash still plays audio on Firefox.

Last edited by smlance (2013-12-30 20:22:18)

Offline

#7 2013-12-30 20:58:58

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: No sound with flash through chromium or google-chrome-stable

If you open pavucontrol and play a video does it show chromium in the playback tab? If not try killing pulseaudio with "sudo pulseaudio -k" (I think) and restarting with pulseaudio --start (I think) and then try it again (reload page and check in pavucontrol)

Edit: I should probably mention I am using google-chrome-beta package and just pointing chromium to it's installed plugin (did this so I only had to update one package for libpdf).

Last edited by dodo3773 (2013-12-30 21:01:13)

Offline

#8 2013-12-30 21:15:31

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: No sound with flash through chromium or google-chrome-stable

Okay a little more info. Here are some gstreamer packages I have installed (I don't know if these make a difference but I am also running out of ideas):

extra/gstreamer0.10 0.10.36-3 [installed]
extra/gstreamer0.10-bad 0.10.23-7 [installed]
extra/gstreamer0.10-bad-plugins 0.10.23-7 (gstreamer0.10-plugins) [installed]
extra/gstreamer0.10-base 0.10.36-2 [installed]
extra/gstreamer0.10-ffmpeg 0.10.13-2 (gstreamer0.10-plugins) [installed]
extra/gstreamer0.10-good 0.10.31-4 [installed]
multilib/lib32-gstreamer0.10 0.10.36-2 [installed]
multilib/lib32-gstreamer0.10-base 0.10.36-5 [installed]

Also, I have "libao" installed. Not sure what to tell you other than that. I checked some config files and didn't find anything really interesting.

Edit: The pulseaudio wiki talks about deleting everything in ~/.pulse/ and restarting it. May be worth a try too

Edit2: Read on another thread that also having alsa-oss installed could be bad maybe. No clue if that is true

Last edited by dodo3773 (2013-12-30 21:19:08)

Offline

#9 2013-12-31 00:40:12

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

Re: No sound with flash through chromium or google-chrome-stable

dodo3773 wrote:

If you open pavucontrol and play a video does it show chromium in the playback tab? If not try killing pulseaudio with "sudo pulseaudio -k" (I think) and restarting with pulseaudio --start (I think) and then try it again (reload page and check in pavucontrol)

Edit: I should probably mention I am using google-chrome-beta package and just pointing chromium to it's installed plugin (did this so I only had to update one package for libpdf).

Great! When I use pavucontrol, I do see chromium show up in the playback tab. I can change the device to my USB headset, and when I do, it plays sound! It seems to automatically be configured to HDMI.

Now to figure out why Flash plays audio through HDMI when on chromium but not on Firefox, and how to set it to automatically select the higher priority soundcard.

Offline

#10 2013-12-31 00:49:54

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: No sound with flash through chromium or google-chrome-stable

Does changing it on the output tab in pavucontrol not work? Well the hard parts over I am sure you can figure out the rest

Offline

#11 2013-12-31 00:56:37

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

Re: No sound with flash through chromium or google-chrome-stable

dodo3773 wrote:

Does changing it on the output tab in pavucontrol not work? Well the hard parts over I am sure you can figure out the rest

I'm not sure what you mean -- changing what in the output tab?

I've just rebooted. The problem now is that while Flash plays audio on chromium just fine, it no longer does on Firefox, and this time, nothing shows up in pavucontrol when a Flash video plays in Firefox. It seems like one locks the other out -- if Flash works on Firefox, it doesn't work on Chrome, and vice versa...

Offline

#12 2013-12-31 01:02:14

dodo3773
Member
Registered: 2011-03-17
Posts: 814

Re: No sound with flash through chromium or google-chrome-stable

Oh I meant the tab in pavucontrol called "Output Devices". Mine has a drop down where I can select "Headphones (plugged in)". Not sure about the flash firefox & pepperflash chromium issue as I do not use flash plugin with firefox (I actually pretty much always use html5 now anyways now that the youtube html5 player doesn't suck as much as it used to in chromium too). Not sure how much more help I can be on this issue though. My only guess is that the two are conflicting with one another some how.

Offline

#13 2014-01-01 10:56:48

pok0j
Member
Registered: 2013-06-07
Posts: 5

Re: No sound with flash through chromium or google-chrome-stable

Have you tried running browser with wrapper?

padsp firefox

Offline

#14 2014-01-01 13:59:08

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

Re: No sound with flash through chromium or google-chrome-stable

pok0j wrote:

Have you tried running browser with wrapper?

padsp firefox

If I do this, Flash still doesn't play audio on Firefox.

Offline

#15 2014-01-01 15:58:34

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

Re: No sound with flash through chromium or google-chrome-stable

man, pavucontrol is really not that hard to understand. in the "output devices you can define default devices - called fallback - (just hover the buttons, it will show you which one it is.
and in the Configuration tab you can even disable the hdmi device completely...


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

#16 2014-01-03 15:18:55

smlance
Member
Registered: 2013-12-27
Posts: 8
Website

Re: No sound with flash through chromium or google-chrome-stable

Rasi wrote:

man, pavucontrol is really not that hard to understand. in the "output devices you can define default devices - called fallback - (just hover the buttons, it will show you which one it is.
and in the Configuration tab you can even disable the hdmi device completely...

Disabling the HDMI device seems to work, as now Flash plays on both Firefox and Chromium.

To take this one step further, I can't play Flash applets simultaneously in Firefox and Chromium: if a video is playing in Firefox and I try to start a video in Chromium, it stays paused until I leave the page on Firefox, and vice versa.

Last edited by smlance (2014-01-03 15:19:23)

Offline

Board footer

Powered by FluxBB