Posts: 41
Joined: Jan 2023
Reputation:
0
Stuggy
Junior Member
Posts: 41
Am I right that Kodi provides time-shifting for a stream passed to Kodi but the job of recording anything belongs to the addon?
I see all of calls that Kodi makes to the addon about recordings which seems to suggest that Kodi interrogates the addon about how many etc.
Posts: 1,976
Joined: Jul 2012
Reputation:
72
Kodi PVR only provides the documented API's. For the ones you comment it depends OpenLiveStream() and OpenRecordingStream() are not traditional streams the addon must follow the API spec, simple streaming won't work. You can also tell PVR not to use these with GetChannelStreamProperties() and use more traditional streaming like pvr.iptvsimple does with inputstream protocols, and build your own timeshifting.
Yes, actual recording would be the task of the add-on
Typically the add-on communications with a backend in another protocal. but it doesn't have to.
Martin
Posts: 41
Joined: Jan 2023
Reputation:
0
Stuggy
Junior Member
Posts: 41
Ok thanks. I am reading the API but it is just doxygen which is understandable. There doesn't appear to be anything on the wiki that describes the overall structure. After digging into the API a bit I think that I'm starting to understand what Kodi does and doesn't do.
Those two function calls that you mentioned are they Kodi calls?
Posts: 41
Joined: Jan 2023
Reputation:
0
Stuggy
Junior Member
Posts: 41
I just found that Openlivestream() is a Kodi call.