I was browsing thru old plugins and found this, StreamBuffer, I don´t know the author nor the board I downloaded from, it seems to work, just start the stream then the plugin, the keys 1,3,4,6,7,9 work on vod, it can even pause live stream, quote by author
QuoteDisplay MoreThis was written to overcome the loss of seek when streaming VOD from Bouquets,
but never finished ( I too have never had the time ) it was always my intention
to mount the boxes HDD to the plugin too to allow for buffering, basically timeshift.
This works for normal IPTV streams from Bouquets though as well.
Start an IPTV channel from your Bouquets, then open the plugin. Press red to play
using Mediaplayer and Gstreamer or green to play using Exteplayer3 and ffmpeg.
As i say this was never finished, but it can be used as a good starting point for
what you suggest, because if you know how, the reconnect code can be added to it,
as well as mounting the boxes HDD, giving buffer for Live streams and Timeshift
for VOD streams. This plugin basically does away with the complex issues you mention above.
I was doing debug on the console and the plugin starts the player you set up in serviceapp so no need to treat differently 4097, 5002, I was able to find the original plugin.py from 2017 and I put it in the zip
