A Chrome Extension to pick an audio output device for HTML5 audio and video elements
The extension patches HTML5 audio and video .play() method and manipulates the sinkId
in order to switch to the desired audio output device.
It also does not and will never work with AudioContext cause setSinkId() is not implemented for it.
To not overhead every page with script injection it require to pause/play media on initialization.
Note that the API requires a successful call to getUserMedia()
for every site with audio sinks that
need to be manipulated which - as a result - creates entries under contentSettings['microphone']
, i. e.
it allows those sites to access your microphone.