SliTaz SliTaz Forum

You are not logged in.

#1 2012-06-17 09:57:17

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Firefox mplayer plugin

I am using three sound devices and using the .asoundrc file I have set the third device as the default.

I can play audio using vlc, alsaplayer etc but not when I play an audio file via firefox - video is OK but no sound. It appears that mplayer plugin used in firefox appear to route audio to hw:0,0 which is a webcam and hence no playback capability. Is there any way to force mplay plugin to use a given audio device rather than using the default hw:0,0 device? Tried using vlc, alsaplayer etc for handling audio on firefox without success.

Offline

#2 2012-06-17 10:21:25

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Firefox mplayer plugin

Edited /etc/mplayerplug-in.conf to include ao=alsa,pcm but still no success....

Offline

#3 2012-06-17 22:05:31

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Firefox mplayer plugin

If you play an audio file with mplayer from terminal is the sound pushed out the correct soundcard and speakers?

Offline

#4 2012-06-18 02:58:39

gdesilva
Member
Registered: 2011-04-07
Posts: 419

Re: Firefox mplayer plugin

It appears browsers directly access hw:0,0 hence even if default device is specified in .asoundrc sound is routed to hw:0,0.

A solution was found in http://www.linuxquestions.org/questions/linux-software-2/how-to-configure-flash-9-in-firefox-to-use-a-specific-alsa-device-629183/ (post by Shadow_7) which simply involves creating the file /etc/modprobe.d/alsa_custom with the entry options snd-usb-audio index=0 to make the required device have the index of 0 (hw:0,0). I did not try the full method described by Shadow_7.

@mojo, I may have changed the default setting on mplayer which could have been the problem but I think this is a better solution as I can make my Audigy the hw:0,0 every time. Thanks.

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.018 seconds, 7 queries executed - Memory usage: 1.54 MiB (Peak: 1.77 MiB) ]