Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

By default, Firefox uses the system's default audio device for HTML5 audio playback and the program offers no possibility to select an alternative audio device, if several audio devices are present on the system.

Any solution, which runs within Firefox is welcomed (AddOn, Extension, modified Firefox Source Code), with preference for an AddOn/Extension, if feasable.

I did not ask that for flash , since adobe flash is not controlled by firefox. Although it is of much interest for many users as well, and any idea to control flash plugin in FF to choose sound device is helping a lot. What about chrome? or any other browser out there can do this in HTML5 videos or flash?

By the way, does the new HTML5 web audio API providing the ability to select the audio device and solving this issue?

Any idea is highly welcomed, even if there is a hack in the FF about:config or windows registry.

Windows Xp sp3 (32 bit) , FF v.24

share|improve this question

2 Answers 2

I'm pretty sure this is impossible using the current Firefox/Chrone extension architecture. Selecting the audio device is the job of the operating system. Thus you would need to construct a plugin that would call into the OS to switch audio devices.

I'll be very very curious if anyone can do this. I don't know the APIs on Linux, but on Windows, switching Audio devices requires you to call into the Core Audio APIs. And keep in mind there is no API to switch the default audio device.

The idea alone sounds like a security vulnerability, but that's just my opinion.

share|improve this answer
    
Thanks for the answer. However I meant that making FF choosing to direct the output of an HTML5 audio into a sound device other than the default audio device without switching the default OS audio device. This is a common feature in media players like VLC, so why it is not in browsers? Did you see a browser that can choose its output audio device at least for the HTML5 audio and video (since I know that the flash is not controlled by the browser)? Even a very basic browser will help. –  hayder Sep 22 '13 at 21:12
    
Core Audio? I thought that was an OS X thing. And Windows does have ways for a program to select specific audio devices, even though they're different in ≤XP and ≥Vista. –  grawity Sep 22 '13 at 21:57
    
@hayder: Yes, the browser can control it's audio device output. But the browser has to do it. You can't switch the audio device from HTML5. –  surfasb Sep 22 '13 at 22:01
    
@grawity: I think you can still use the same XP APIs in Vista. They didn't significantly change until Windows 7. –  surfasb Sep 22 '13 at 22:03
    
@surfasb If the browser can control it's audio device output, it will be very helpful. I can run a browser for my headset through a sound device and other browser for let's say youtube on an attached TV through another sound device. This is a an eagerly needed feature by many. But still I cannot find any browser that can control it's audio device output as you said. Did you see any browser doing that? –  hayder Sep 24 '13 at 1:34

I have found a solution:

This is a new Firefox addon waiting to be reviewed. It is developed by a friend of mine:

https://addons.mozilla.org/en-US/firefox/addon/chaudev/

I have been waiting for this for years.

I want to use this when my wife is watching youtube on her Chrome browser and I am watching something like coursera online MOOC lectures (FF) on the TV connected to the pc. I wanted to hear my classes on the headset, while sending youtube's output to the speakers.

I have 2 mice (mine is wireless) and have installed a neat program called teamplayer which gives multiple cursors (one per mouse).

So I have now literally the capability of letting two people work on 1 pc.

And on top of that it works seamlessly with "Enounce Myspeed" for speeding up the video lectures' playback.

share|improve this answer
    
The link above is broken. Do you know where the add-on can be downloaded? –  Spire Jan 17 at 6:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.