2012-04-29, 15:24
I want to display the stream details (codecs etc) of the currently playing file and it seems you have to use either Player.GetItem for video or Player.GetProperties for music. So:
Gives me the current audio stream for music as you would expect and:
gives me the stream(s) for video.
It makes sense that Player.GetItem gives me all the streams for video but doesn't make sense (to me) that I get nothing for music. It also doesn't make sense (again to me) that Player.GetProperties currentaudiosteam is empty for videos.
What I'd like to see is Player.GetProperties returning the current video as well (so a currentvideostream, a videostreams to keep it consistent with audio) and Player.GetItem streamdetails returning the audio streams of audio files.
Hopefully that makes sense. If you agree I'll create a ticket (bug or feature?).
Code:
{"jsonrpc":"2.0","id":2,"method":"Player.GetProperties","params":{ "playerid":0,"properties":["speed", "shuffled", "repeat", "subtitleenabled", "time", "totaltime", "position", "currentaudiostream"] } }
Code:
{"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["title", "album", "artist", "duration", "thumbnail", "file", "fanart", "streamdetails"], "playerid": 0 }, "id": 1}
It makes sense that Player.GetItem gives me all the streams for video but doesn't make sense (to me) that I get nothing for music. It also doesn't make sense (again to me) that Player.GetProperties currentaudiosteam is empty for videos.
What I'd like to see is Player.GetProperties returning the current video as well (so a currentvideostream, a videostreams to keep it consistent with audio) and Player.GetItem streamdetails returning the audio streams of audio files.
Hopefully that makes sense. If you agree I'll create a ticket (bug or feature?).