Kodi Community Forum
Solved Player.Progress InfoLabel empty? - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Solved Player.Progress InfoLabel empty? (/showthread.php?tid=357445)



Player.Progress InfoLabel empty? - mblovell - 2020-10-02

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": ""}}



Player.Progress InfoLabel empty? - enen92 - 2020-10-04

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


RE: Player.Progress InfoLabel empty? - enen92 - 2020-10-04

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.


Player.Progress InfoLabel empty? - enen92 - 2020-10-04

Thread marked solved.


RE: Player.Progress InfoLabel empty? - mblovell - 2020-10-04

Thanks for the replies!

Yes, I'm currently just using Leia.