Kodi Community Forum
Recording and timeshift - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: PVR (https://forum.kodi.tv/forumdisplay.php?fid=136)
+---- Thread: Recording and timeshift (/showthread.php?tid=371835)



Recording and timeshift - Stuggy - 2023-02-05

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.


RE: Recording and timeshift - emveepee - 2023-02-05

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


RE: Recording and timeshift - Stuggy - 2023-02-05

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?


RE: Recording and timeshift - Stuggy - 2023-02-05

I just found that Openlivestream() is a Kodi call.


RE: Recording and timeshift - emveepee - 2023-02-05

Before posting best to read and understand https://xbmc.github.io/docs.kodi.tv/master/kodi-base/d6/d05/group__cpp__kodi__addon__pvr.html along with some existing addons

Martin