12-27-2021, 01:21 PM
The code that accomplishes the switch between MPD -> Local and MPD => Bluetooth is in /var/www/blu-config.php. Look for the comment // Change MPD audio output.
You might be able to make a PHP script containing this code and call it from /usr/local/bin/a2dp-autoconnect but I have no idea whether this would actually work.
You might be able to make a PHP script containing this code and call it from /usr/local/bin/a2dp-autoconnect but I have no idea whether this would actually work.