2021-12-25, 13:47
Background:
I am maintaining the two PVR addons für Zattoo and Teleboy. These two addons work in a very similar way: The addon provides the EPG and recording data and simply provides an URL to Kodi which is then played with the help of inputstream.adaptive. As soon as a stream is started, the addon has done its job an all the work is done by Kodi and its inputsteam addon.
This works very well including pausing and continuing a live stream in time shift (until recently).
The issues:
To solve these two issues, the PVR addon would need to know when a stream is paused/resumed/stopped/finished and then needs to be able to take some actions like playing a different URL, stopping the stream, some other kind of action, or just leave the decision to the inputstream addon.
Addition information:
Issue 1. has already been discussed here together with @phunkyfish and Alwin Esch:
https://github.com/rbuehlma/pvr.zattoo/issues/134
It's hard for me to tell how this is best implemented in Kodi but I hope providing the background information of the request, helps to come up with a good solution.
I am maintaining the two PVR addons für Zattoo and Teleboy. These two addons work in a very similar way: The addon provides the EPG and recording data and simply provides an URL to Kodi which is then played with the help of inputstream.adaptive. As soon as a stream is started, the addon has done its job an all the work is done by Kodi and its inputsteam addon.
This works very well including pausing and continuing a live stream in time shift (until recently).
The issues:
- Since some time, Zattoo requires that on every pause/resume a POST call is done to their server. When resuming the stream in Timeshift, the server will return a new URL which needs to be streamed instead of the previous one.
- When watching a past show (in replay) to its end, the user expects that the stream simply continues with the next show (especially if the show is longer than the planned EPG entry).
To solve these two issues, the PVR addon would need to know when a stream is paused/resumed/stopped/finished and then needs to be able to take some actions like playing a different URL, stopping the stream, some other kind of action, or just leave the decision to the inputstream addon.
Addition information:
Issue 1. has already been discussed here together with @phunkyfish and Alwin Esch:
https://github.com/rbuehlma/pvr.zattoo/issues/134
It's hard for me to tell how this is best implemented in Kodi but I hope providing the background information of the request, helps to come up with a good solution.