2008-03-21, 22:20
Hi.
I am trying to use the HTTP API, and I am only partially successful.
This works, and plays the selected file:
This works, it adds the song to the playlist:
This works, it shows the song:
These work, I set the current playlist to 0 (music playlist) and verify it:
However, neither of these work, the song isn't played:
If I run a GetCurrentPlaylist after issuing PlayNext or PlayListNext, it returns -1. I've tried doing a SetPlaylistSong(0) first as well, without any luck.
Also, adding a folder with AddToPlaylist does not work:
Any ideas?
I am trying to use the HTTP API, and I am only partially successful.
This works, and plays the selected file:
Code:
http://10.0.0.64//xbmcCmds/xbmcHttp?command=PlayFile¶meter=smb://musikk/slottet/mp3/Covenant/Northern%20Lights/Covenant_03_Bullet.mp3
This works, it adds the song to the playlist:
Code:
http://10.0.0.64//xbmcCmds/xbmcHttp?command=AddToPlaylist¶meter=smb://musikk/slottet/mp3/Covenant/Northern%20Lights/Covenant_03_Bullet.mp3;0;music;1
This works, it shows the song:
Code:
http://10.0.0.64//xbmcCmds/xbmcHttp?command=GetPlaylistContents¶meter=0
These work, I set the current playlist to 0 (music playlist) and verify it:
Code:
http://10.0.0.64//xbmcCmds/xbmcHttp?command=SetCurrentPlaylist¶meter=0
http://10.0.0.64//xbmcCmds/xbmcHttp?command=GetCurrentPlaylist
However, neither of these work, the song isn't played:
Code:
http://10.0.0.64//xbmcCmds/xbmcHttp?command=PlayNext
http://10.0.0.64//xbmcCmds/xbmcHttp?command=PlayListNext
Also, adding a folder with AddToPlaylist does not work:
Code:
http://10.0.0.64//xbmcCmds/xbmcHttp?command=AddToPlaylist¶meter=smb://musikk/slottet/mp3/Covenant/Northern%20Lights/;0;music;1
Any ideas?