Control media player of smartphone connected via Bluetooth, for Ubuntu (not tested on other Linux distributions) Also displays information like time elapsed, total time, title, artist, album of song etc.
BlueZversion >= 5.48 (usually pre-installed)- Python 2 or 3
pydbusandtkinter(orTkinterif you are using Python 2) modules installed
- Pair your smartphone to Ubuntu machine
- Play music on phone(the a2dp source), and make sure your Ubuntu machine speakers(the a2dp sink) play the audio
- Run the script main.py (the window will only appear when the system is receiving audio through Bluetooth).
- Now you can do Play, Pause, Next track, Previous track from Ubuntu machine itself
If Step 2 of 'How to use?' is not working for you, the following might help. Check out this link here.