python-vlc
python-vlc copied to clipboard
Audio must be playing before audio output device can be switched?
I'm trying to set the audio output device, but I seem to be unable to set the intended audio output device before the audio stream is actually playing.
If I use self.vlc_player.audio_output_device_set(None, 'bluealsa') before calling the play command, nothing happens. The .audio_output_device_get() method still outputs the default value.
After the audio starts playing, the same method does work.
The practical result is that the audio always briefly outputs to to the device speakers before switching over to Bluetooth.
This makes quietly listening to Bluetooth headphones while others are sleeping rather difficult :-)