Solved Player.Progress InfoLabel empty?
#1
I don't see any code within guilib/guiinfo/MusicGuiInfo.cpp for handling the Player.Progress InfoLabel.  Should I?

When including that InfoLabel in a JSON-RPC request, the resulting portion of the response is empty (see below).  Both Player.Duration and MusicPlayer.Duration get filled in properly.

Response:  {"id": 4, "jsonrpc": "2.0", "result":
  {"MusicPlayer.Album": "Brandl: Symphony Op. 12 & Op. 25",
   "MusicPlayer.Artist": "Staatsphilharmonie Rheinland-Pfalz",
   "MusicPlayer.Duration": "03:24",
   "MusicPlayer.Time": "00:20",
   "MusicPlayer.Title": "Symphony in E-flat Major, Op. 12: III. Menuetto - Allegro",
   "Player.Duration": "03:24",
   "Player.Progress": ""}}
Reply
#2
Not sure if this is a bug or the expected behaviour but are you using matrix/master branch? Player.progress was exposed as an infolabel (not just an integer based info) in https://github.com/xbmc/xbmc/pull/17965
Reply
#3
I've just compared the behaviour between Leia and Matrix using

json:

http://localhost:8080/jsonrpc?request={"jsonrpc":2.0,"method":"XBMC.GetInfoLabels","params":{"labels":["Player.Progress"]},"id":2}

while playing a movie and in fact Matrix has it solved due to the aforementioned PR.

Leia:
json:

{"id":2,"jsonrpc":"2.0","result":{"Player.Progress":""}}

Matrix
json:

{"id":2,"jsonrpc":"2.0","result":{"Player.Progress":"37"}}

I'm marking the thread as solved. Leia won't see any new iteration so, please upgrade to matrix at some point.
Reply
#4
Thread marked solved.
Reply
#5
Thanks for the replies!

Yes, I'm currently just using Leia.
Reply

Logout Mark Read Team Forum Stats Members Help
Player.Progress InfoLabel empty?0