maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   How can I play a playlist through stock Harmattan Music Player programmatically? (https://talk.maemo.org/showthread.php?t=87037)

scifi.guy 2012-09-25 23:22

How can I play a playlist through stock Harmattan Music Player programmatically?
 
I am trying to find a way to play a playlist through Harmattan's built-in/stock music player (music-suite) via commandline or dbus. I have a playlist named "Test" in the music suite. I couldn't find what is the required input for the playPlaylist method from harmattan documentation or anywhere else.

I tried these commands.


Code:

dbus-send --type=method_call --print-reply --dest=com.nokia.maemo.meegotouch.MusicSuiteService / com.nokia.maemo.meegotouch.MusicSuiteInterface.playPlaylist array:string:'Test'
-- No Dbus error. Launches a blank page with an error prompt "Can't connect to server"


Code:

dbus-send --type=method_call --print-reply --dest=com.nokia.maemo.meegotouch.MusicSuiteService / com.nokia.maemo.meegotouch.MusicSuiteInterface.playPlaylist array:string:'urn:uuid:3abfeac6-c314-4aa4-9d8e-bd573b0bc1d1'

-- No Dbus error. Launches a blank page with an error prompt "You can't play these types of files on this device"

Can anyone let me know what is the correct format for playPlaylist method? Is there any other way of launching the music suite and playing a playlist (custom or "Recently Added" or "Most Played" or "All Songs") from command-line/Dbus/another-application?


All times are GMT. The time now is 10:11.

vBulletin® Version 3.8.8