Kodi Community Forum
Trying to play encoded stream using JSON API - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Trying to play encoded stream using JSON API (/showthread.php?tid=375682)



Trying to play encoded stream using JSON API - sciurius - 2024-01-06

I have a tool (standalone program) that can fetch a video URL and then play it on Kodi using JSON API (Player.Open).

I want to extend te tool to handle encoded streams. I have all the information required to play the stream (video url, widevine license key) but I can't seem to find the way to pass this to Kodi using JSON API.

Has anyone ever done this?


RE: Trying to play encoded stream using JSON API - pkscout - 2024-01-07

I don't think that's available via the JSON API.  You'd probably need to write an addon that uses InputStream Helper to handle the widevine encryption.


RE: Trying to play encoded stream using JSON API - sciurius - 2024-01-09

If I recall correctly, it is possible to start an add-on (with arguments) from JSON. So this add-on would only need to get its arguments, setup the inputstream, and play.

Are there any plugins similar to that, to see how it can be done?


RE: Trying to play encoded stream using JSON API - izprtxqkft - 2024-01-09

(2024-01-09, 15:33)sciurius Wrote: If I recall correctly, it is possible to start an add-on (with arguments) from JSON. So this add-on would only need to get its arguments, setup the inputstream, and play.

yes, the wiki is here https://github.com/xbmc/inputstream.adaptive/wiki/Integration
 
(2024-01-09, 15:33)sciurius Wrote: Are there any plugins similar to that, to see how it can be done?

pretty much any addon in the video addons section is using ISA https://forum.kodi.tv/forumdisplay.php?fid=154 (but the wiki above shows implementation)
prime video, netflix, hulu, disney+, peacock, hbo max