Kodi Community Forum
Video stream details in Kodi (time behind live) - 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)
+---- Forum: JSON-RPC (https://forum.kodi.tv/forumdisplay.php?fid=174)
+---- Thread: Video stream details in Kodi (time behind live) (/showthread.php?tid=360212)



Video stream details in Kodi (time behind live) - PiGuyKindaGuy - 2021-01-31

Hi all,

Is it possible to get the details of the active stream with the goal of determining how far behind "live" the playback is? When I'm watching a stream and hit the info button, I can see the current playback time and what I assume is the the current play time.

I've used the following which gets me some details of the stream, but would like to just get the value of the delay from buffering.
{"jsonrpc": "2.0", "method": "Player.GetItem", "params": { "properties": ["file","mediapath","dynpath"], "playerid": 1 }, "id": "VideoGetItem"}


Thanks!


RE: Video stream details in Kodi (time behind live) - PiGuyKindaGuy - 2021-01-31

I think I may have this sorted by using the VideoPlayer.TimeRemaining infolabel. The "live" time is being interpreted as the end time of the video, so in theory the time remaining should show how far behind live I am.
Quote:$command = '{"jsonrpc":"2.0","method":"XBMC.GetInfoLabels","id":1,"params":{"labels":["VideoPlayer.TimeRemaining"]}}'

Still happy for feedback if anyone has some.