2010-12-22, 14:09
MKay Wrote:....
1. Playlist.Remove does not work (The other people already mentioned that. ).
It would be nice if this would be implemented.
....
3. It's possible to add a folder to the playlist:
'{"method": "AudioPlaylist.Add", "params": { "file": "/media/usb/mp3" }}'
But the API will not add the files (inside the folder) itself to the playlist.
4. I use the following code to add a file to the playlist:
'{"method": "AudioPlaylist.Add", "params": { "file": "/media/usb/mp3/track.mp3" }, "id": 1}'
This works fine, but then AudioPlaylist.GetItems returns no song-information like artist, label etc. with this command:
'{"method": "AudioPlaylist.GetItems", "params": { "fields": ["title", "album", "artist", "duration"] }}'
....
i want to play for example music from an usb-stick without adding the files to the database ;-)
The old HTTP API had a method for this: AddToPlayList(...).
Has been this problem solved yet?
I'm working on simple player (no video, no library access, just shared music browser and audio player) and must say that adding files from the directory subtree (recurently) using AudioPlaylist.Add is a nightmare. Implementation of the xbmcHttp?commmnad=AddToPlayList in the JSON-RPC would be really helpfull.
Interface seems to be developed just with XBMC library users in mind. Please remember many users don't use library, just play files on removable HDs, USBs, data CD/DVDs ...