×

Discussion Board

Results 1 to 3 of 3

Hybrid View

  1. #1
    Registered User
    Join Date
    Aug 2011
    Posts
    11

    How can I play a playlist through stock Harmattan Music Player programmatically?

    This is a cross-post from TMO (sorry for the repetition). 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 or Qt. I have a playlist named "Test" in the music suite. I have tried using Harmattan's MeeGo Touch Framework API (MusicSuiteService). But I couldn't find what is a valid 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'
    Result: 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'
    Result: 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?

  2. #2
    Registered User
    Join Date
    Sep 2011
    Posts
    449

    Re: How can I play a playlist through stock Harmattan Music Player programmatically?

    Hi,

    Have you seen this post..
    http://talk.maemo.org/showthread.php?t=80565

    It could be the relative path problem.. i could not try it as i dont have an n9.
    Hope this helps. Try giving absolute path in the above dbus command.

    -Kusuma

  3. #3
    Registered User
    Join Date
    Aug 2011
    Posts
    11

    Re: How can I play a playlist through stock Harmattan Music Player programmatically?

    Quote Originally Posted by kusumk View Post
    Hi,

    Have you seen this post..
    http://talk.maemo.org/showthread.php?t=80565

    It could be the relative path problem.. i could not try it as i dont have an n9.
    Hope this helps. Try giving absolute path in the above dbus command.

    -Kusuma
    As that poster mentioned, absolute path works for a single mp3 file but NOT with an m3u playlist. It's a known issue that Harmattan's music suite does not support external m3u playlists. So, I created my playlist "Test" using the music suite interface itself. I am trying to play this playlist.

    I have already tried it before, but just for the sake of confirmation, I created an external playlist file called "MyExternalPlayList.m3u" and executed these commands:

    Code:
    dbus-send --type=method_call --print-reply --dest=com.nokia.mae
    mo.meegotouch.MusicSuiteService / com.nokia.maemo.meegotouch.MusicSuiteInterface
    .playPlaylist array:string:'/home/user/MyDocs/Music/MyExternalPlaylist.m3u'
    Code:
    qdbus com.nokia.maemo.meegotouch.MusicSuiteService / com.nokia.
    maemo.meegotouch.MusicSuiteInterface.playPlaylist /home/user/MyDocs/Music/MyExte
    rnalPlaylist.m3u
    In both cases I got a black screen and "Can't connect to server" error. So my question is, what kind of input does com.nokia.
    maemo.meegotouch.MusicSuiteInterface.playPlaylist need exactly? The apparently system-generated documentation on Harmattan Meego Touch Music Suite API for this method is as good as non-existent.

Similar Threads

  1. Questions about Nokia Music Player - "Most Played" Auto Playlist S60
    By walterdavid in forum General Development Questions
    Replies: 2
    Last Post: 2010-09-21, 04:50
  2. Replies: 1
    Last Post: 2009-10-26, 11:19
  3. Music player playlist
    By gpletnev in forum Symbian
    Replies: 3
    Last Post: 2009-04-10, 10:40
  4. Loading an m3u playlist into the Music Player (5th Edition)
    By andrew_ramsay in forum Symbian Media (Closed)
    Replies: 2
    Last Post: 2008-12-21, 18:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •