2010-10-16, 13:17
Well since the infolabels returns "" on no data, you can do a first request to get all audio and video data, this will let you know wich player is active
Then a xxxplayer.state gives the states.
This is bad because asking for more data than needed in the first request but it permits to go from 4 request to 2 to have all the needed informations.
This seems to be a good compromise.
For the thumb / fanart it's really easy to get them from the file name.
And since in you case i don't think user can clear the playlist before you have made the first data get you can use the xxxplaylist.getitems to get fanart / thumb and player state instead of player.state
(Well if suppose that if the media goes to the second one after the clear it won't work but can't test since don't use that).
Edit : Wiki is not complete since you can find in confluence skin that VideoPlayer.Season and VideoPlayer.episode exists
For the paused there is Player.Paused but needs to be called with the System.GetInfoBooleans too bad the bool can"t be get with the other functions, still needs to make 2 requests But well it's better than 4
Then a xxxplayer.state gives the states.
This is bad because asking for more data than needed in the first request but it permits to go from 4 request to 2 to have all the needed informations.
This seems to be a good compromise.
For the thumb / fanart it's really easy to get them from the file name.
And since in you case i don't think user can clear the playlist before you have made the first data get you can use the xxxplaylist.getitems to get fanart / thumb and player state instead of player.state
(Well if suppose that if the media goes to the second one after the clear it won't work but can't test since don't use that).
Edit : Wiki is not complete since you can find in confluence skin that VideoPlayer.Season and VideoPlayer.episode exists
For the paused there is Player.Paused but needs to be called with the System.GetInfoBooleans too bad the bool can"t be get with the other functions, still needs to make 2 requests But well it's better than 4