![]() |
how to know if it's a stream - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27) +---- Forum: Web Interfaces (https://forum.kodi.tv/forumdisplay.php?fid=156) +---- Thread: how to know if it's a stream (/showthread.php?tid=218695) |
how to know if it's a stream - tuxfuxch - 2015-02-17 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? RE: how to know if it's a stream - Kabooga - 2015-02-19 Good question. You may want to post this question in the JSON-RPC forum. RE: how to know if it's a stream - tuxfuxch - 2015-02-20 Kabooga, thanks for the hint, did not realize that there is a JSON form *shame* could an admin delete this thread? |