2019-07-22, 04:13
When playing live TV, I return `true` from the PVR callback IsRealTimeStream. For some time now, this has not been working as expected, and I am at a loss as to why. This has had me stumped for weeks.
I expect that when `true` is returned, that Kodi will attempt to exhaust the stream, and control the playback speed so as to not overrun the input and stall, or the other way, buffer in the sender. But it's not working. After changing a channel, Kodi plays a few seconds then buffers. And for some channels, the playback will fall behind real time, as much as 15 or 20 minutes over 8 hours.
How can I debug this situation? I have ensured that IsRealTimeStream is indeed being called (quite often in fact) and that I am returning `true`. What next?
I expect that when `true` is returned, that Kodi will attempt to exhaust the stream, and control the playback speed so as to not overrun the input and stall, or the other way, buffer in the sender. But it's not working. After changing a channel, Kodi plays a few seconds then buffers. And for some channels, the playback will fall behind real time, as much as 15 or 20 minutes over 8 hours.
How can I debug this situation? I have ensured that IsRealTimeStream is indeed being called (quite often in fact) and that I am returning `true`. What next?