FS#44297 - [chromium] does not play sound in google hangout

Attached to Project: Arch Linux
Opened by Nico Schottelius (telmich) - Sunday, 22 March 2015, 06:10 GMT
Last edited by Evangelos Foutras (foutrelis) - Monday, 23 March 2015, 04:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Evangelos Foutras (foutrelis)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

When trying to have a audio/video chat in google hangouts, the speaker selection is greyed out and I cannot hear any audio.
I have disabled/removed the google-talk plugin, to ensure it native client is being used.

This problem exists for some months now. Workaround is using firefox + google talk plugin.

Today I have found a hint on https://forums.opensuse.org/showthread.php/497580-Google-hangouts-no-sound-in-chromium
that this problem might be related to using /usr/lib/chromium/libffmpegsumo.so, which we are in Arch.



Additional info:
* package version(s)

chromium 41.0.2272.89-1


* config and/or log files etc.


Steps to reproduce:

Log into google hangouts, start a video/audio call, checkout settings: speaker selection is greyed out, no sound is playing.

Other sites (youtube f.i.) do work with sound in chromium.

This task depends upon

Closed by  Evangelos Foutras (foutrelis)
Monday, 23 March 2015, 04:20 GMT
Reason for closing:  Not a bug
Additional comments about closing:  Works with modified .asoundrc file; see comments for more details.
Comment by Evangelos Foutras (foutrelis) - Sunday, 22 March 2015, 17:37 GMT
I can't reproduce this; while the speaker selection box is grayed out, it says "Default speakers" and "Play test sound" works as expected. I'm also able to hear audio in calls.

The libffmpegsumo.so we ship is compiled with full codec support so that shouldn't be the problem.

Please test if Google Chrome has the same issue. Also check if it could be a firewall issue:

https://productforums.google.com/forum/#!topic/hangouts/ScZ7cSQu5RU
Comment by Nico Schottelius (telmich) - Monday, 23 March 2015, 02:29 GMT
Good morning Evangelos,

I have the same setup in the sense that it is grayed out, but the play test sound does not work.
I do have 2 sound cards on my system, 0 being HDMI and 1 being the regular one. So I have setup .asoundrc like this:

[11:26] freiheit:~% cat .asoundrc
pcm.!default {
type hw
card 1
}

ctl.!default {
type hw
card 1
}

I am not sure if this is related.


For the positive test: Just using firefox + google talk plugin on the same machine works perfectly, I am seeing all speakers and sounds works in the test, as well as in the call (i.e. it is not a firewall problem).

Regarding the link: My connections works fine, video works, the other party can actually hear me. I can see by the bars in their icon that they are speaking, I simply do not hear anything.

I will try to give chrome a try to compare.
Comment by Nico Schottelius (telmich) - Monday, 23 March 2015, 02:54 GMT
Just tested google-chrome with the same result.

Test environment:

Google Chrome 41.0.2272.101 (Official Build) unknown
Revision 0c9975a0ae4c55b8530ec3193c21ed54b96cbe88-refs/branch-heads/2272@{#437}
OS Linux
Blink 537.36 (@191727)
JavaScript V8 4.1.0.21
Flash 17.0.0.134
User Agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.101 Safari/537.36
Command Line ./opt/google/chrome/chrome --flag-switches-begin --flag-switches-end
Executable Path /home/users/nico/google-chrome/opt/google/chrome/chrome
Profile Path /home/users/nico/.config/google-chrome/Default
Variations e9f4800b-39c30599
4b406b23-3f4a17df
3ac60855-486e2a9c
f296190c-6e597ede
4442aae2-a90023b1
ed1d377-e1cc0f14
75f0f0a0-6bdfffe7
e2b18481-bd104136
e7e71889-4ad60575

Started from the 64 bit rpm using:

./opt/google/chrome/chrome

and also tried

LD_LIBRARY_PATH=$(pwd)/opt/google/chrome:$(pwd)/opt/google/chrome/lib ./opt/google/chrome/chrome

Both times the sound card is grayed out, test sound does not play

I also realised that the camera is grayed out, but this is also the case in firefox.

However I saw one difference: when pressing "play test sound" it changes to "playing" in firefox, however the text stays as it is in chromium/google-chrome.

Comment by Evangelos Foutras (foutrelis) - Monday, 23 March 2015, 02:57 GMT
Can you test without the .asoundrc file to see if the "Play test sound" text changes on click?

Perhaps also try using an alternate .asoundrc file like the one below:

https://bbs.archlinux.org/viewtopic.php?pid=1267301#p1267301
Comment by Nico Schottelius (telmich) - Monday, 23 March 2015, 03:27 GMT
Without asoundrc: Changes to playing, but I do not hear any sound -> I suspect it takes device 0 and plays to HDMI output
Comment by Nico Schottelius (telmich) - Monday, 23 March 2015, 03:31 GMT
Plus errors without .asoundrc:

ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dsnoop.c:614:(snd_pcm_dsnoop_open) unable to open slave
ALSA lib pcm_dsnoop.c:614:(snd_pcm_dsnoop_open) unable to open slave
WARNING: no real random source present!
[3,328464640:03:26:59.199689] Native Client module will be loaded at base address 0x0000440d00000000
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm_dmix.c:1024:(snd_pcm_dmix_open) unable to open slave

Comment by Nico Schottelius (telmich) - Monday, 23 March 2015, 03:34 GMT
With the suggested asoundrc it WORKS! I have to read into alsa, what the differences are here, thanks a lot for the hint!


I don't know in which version it changed, but maybe it was not related to chromium itself, but to alsa. However I remember that trouble started at the time that chromium began to have native client support.

I will now also test without the google talk plugin, because I saw that I re-enabled it for testing some days ago.
Comment by Nico Schottelius (telmich) - Monday, 23 March 2015, 03:38 GMT
It also works without the google talk plugin - so the problem was indeed in my .asoundrc - thanks again for helping me out!

Where's the donate to great support button?
Comment by Evangelos Foutras (foutrelis) - Monday, 23 March 2015, 04:18 GMT
Glad it works for you now. ALSA configuration has always been a black box to me. :)

I'll go ahead and close this task.

Loading...