Montellese Wrote:Is there an easy way for me to reproduce this by using a certain addon or in some other way?
Ok one important piece of information I left out was that I play the file by adding it to the audio playlist. The reason thats important to note, is that I just tested playing with Player.Open using the file instead of playlist position and found that the info is even worse (everything empty). So it looks like there are 2 related bugs here.
Ok so let me give you the different test scenarios
Scenario 1
To start the stream from a playlist, create a m3u file (such as Stream.m3u). Use a text editor and just add in the following stream:
http://216.172.153.242:80
Make sure the Steam.m3u file is in your xbmc music playlist directory under userdata. You should then be able to run the playlist in XBMC, under music->files->playlists
Player.GetItem gives me the following:
{
"id": 2097173,
"jsonrpc": "2.0",
"result": {
"item": {
"file": "",
"label": "",
"thumbnail": "",
"type": "unknown"
}
}
}
The following HTTP API command run in a browser on the xbmc localhost still gives the correct info:
http://localhost:8080/xbmcCmds/xbmcHttp?...Playing();
Scenario 2 using JSON
This scenario should give you the same result as Scenario 1
run the following JSON command to start playing the stream:
{"method":"Player.Open","id":44,"jsonrpc":"2.0","params":{"item":{"file":"http://216.172.153.242:80"}}}
Scenario 3 - JSON through the playlist
Run the following 3 JSON commands to play through the playlist:
a)
{"method":"Playlist.Clear","id":37,"jsonrpc":"2.0","params":{"playlistid":0}}
b)
{"method":"Playlist.Add","id":36,"jsonrpc":"2.0","params":{"item":{"file":"http://216.172.153.242:80"},"playlistid":0}}
c)
{"method":"Player.Open","id":44,"jsonrpc":"2.0","params":{"item":{"position":0,"playlistid":0}}}
I use the following to get the details through JSON in all scenarios (I test using Simple REST client in Google Chrome):
{"method":"Player.GetItem","id":2097173,"jsonrpc":"2.0","params":{"playerid":0,"properties":["title","artist","albumartist","genre","year","rating","album","track","duration","comment","lyrics","playcount","fanart","runtime","streamdetails","thumbnail","file","artistid","albumid"]}}
Let me know if you need anymore details, and thanks for looking into the issue.