djp952 / pvr.hdhomerundvr

Unofficial Kodi HDHomeRun DVR PVR Client
https://github.com/djp952/pvr.hdhomerundvr/wiki
Other
60 stars 9 forks source link

Attempt to recover lost streams #37

Closed djp952 closed 5 years ago

djp952 commented 6 years ago

Report from SD forums is that some devices (Amazon FireXXX in this case) can temporarily lose connection to the RECORD engine/tuners if DHCP changes their IP address. Look into a way to make at least one or two reasonable attempts to recover streams that stopped prematurely.

The trick here may be figuring out if the stream ended or if it was interrupted. A live stream that switched to recorded but was never seeked will still appear to be live to the PVR.

djp952 commented 5 years ago

This is apparently impossible to do right in Kodi. If a drop/interrupt is detected and the stream is replaced with a new one behind the scenes, all the stream properties Kodi maintains get screwed up since now they don't match what Kodi last 'remembered'. It causes a lot of problems.

The best I can seemingly do is kill a dropped/interrupted stream, which will be in release 1.3.13. Marking as Closed.