rain-fighters / AudioPick

A Chrome Extension to pick a preferred audio output device for HTML5 audio and video elements
https://rain-fighters.github.io/AudioPick/
GNU General Public License v3.0
102 stars 22 forks source link

Deezer does not quite work yet with AudioPick-0.3.9 #50

Closed necropola closed 8 months ago

necropola commented 8 months ago

After (re-)loading the page you need to click play->pause->play once in order to help AudioPick to inject its changeSinkId listener. Just clicking play isn't enough.

The current theory is that Deezer creates a detached HTMLMediaElement with autoplay enabled which is suspended until the users interacts with the page, e. g. clicks play. Maybe hooking HTMLMediaElement.prototype.addEventListener helps, assuming that Deezer registers a handler for the play or playing event ...

necropola commented 8 months ago

Fixed in commit 3df20eb Will be available in the upcoming 0.3.10 release.