Kodi Community Forum

Full Version: how to know if it's a stream
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

i am failing to find out, if a stream is played.

with
{ "jsonrpc": "2.0", "method": "Player.GetItem", "params": { "playerid": 1, "properties": [ "title", "showtitle", "artist", "thumbnail", "streamdetails" ] }, "id": 1 }

i get (among others) the following object if i watch with the RT Plugin (Russia Today, live watch)

(streamdetails) Object { audio=[0], subtitle=[0], video=[0]}


in the AlJazeera Plugin, however i get information there. So i could find it out in streamdetails, but not for sure. i want to be sure.

what i actually need: i need to know, when something does have an increasing or unknown end time. (LiveStream like the above mentioned TV Stations or a radio station)

one nasty way would be to find out, if the end time changes. But i guess that would be more a hack than elegant and cause unnecessary overhead (which i have for sure enough in my webinterface).

Any ideas?
Good question.

You may want to post this question in the JSON-RPC forum.
Kabooga, thanks for the hint, did not realize that there is a JSON form *shame*

could an admin delete this thread?