Adding custom 'Source' to Beocreate2 and AudioControl

Hi HifiberryTeam,

Based on the Speaker_Controller_Application (from the unofficial Tidal packages), i am able to create a program which uses linux-screen to send the right commands to the Tidal Connect Application and control (Play/Pause, Next, Previous, VolumeUp, VolumeDown) etc. 

Although not supported, i want to add 'Tidal' as proper Source/MPRIS Player to HifiberryOS and would like some pointers how i could extend this.

So far as i understood the various documents, i could create a MPRISWrapper around the Speaker_Controller_Application, and have Beocreate interact with it. What is the proper way in HifiberryOS to communicate over D-BUS? As i am new with MPRIS/D-BUS, what is a simple way to interact with it (as a test to see my wrapper will work)?

dbus-send --type=method_call --dest=???? /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.play

How can i get the value that should be in --dest ? And more important, how can i expose the Plugin as source to Beocreate? Does this need to be hardcoded? or is there a smarter way to add custom sources to the UI (plugins).





Please sign in to leave a comment.