Is there any way to select the sound device for HTML5 audio playback?
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
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.
A workaround is to use VLC extension, in VLC we have to check "web" in the main interface option (advanced option), next launch HTML5 video in VLC. (In VLC we can change the audio output)
This was meant to be a comment on noar's comment above, but I didn't have the reputation to use that feature at the time.
There's a VLC extension for Firefox nowadays that lets you open Youtube links in VLC, and then you can trivially change the sound output device from VLC's menus.
https://addons.mozilla.org/en-US/firefox/addon/vlc-youtube-shortcut/