2018-10-31, 00:26
I began working on enabling IPTV Simple Client to support the archive feature some IPTV services provide.
The idea is to allow users select a program from the EPG and play it.
Basically it works like this: IPTV providers have an API for accessing the archive, usually it's a custom URL with a placeholder for one or more timestamps.
The Archive feature also allows us to have 'pseudo-timeshift'. This also allows you to have a timeshift buffer that is as long as the whole archive duration, because nothing is physically stored on your device. This can be days worth of timeshifting.
This requires us to close the stream and reopen it again with a new URL. I've got it working with some modifications to both Kodi and the IPTV Simple Client. But I would like to avoid any Kodi modifications that "bend" it to work with the custom implementation I came up with.
I'm not sure how to properly implement it without writing a complete Demux on IPTV Simple Client's side.
I tried to get it working by using vuplus as a template. I Created a CURL file object with the URL to the channel (it is a m3u8 playlist containing the stream list for the channel), it starts playing the channel, but instead of passing the URL as is, it's extracting one the TS streams and so playback ends after just a few seconds.
I'm looking for suggestions on how to proceed from this point forward.
How can I open the stream correctly with the proper URL passed on to the Demux object?
And is it possible to close the stream and open a new one with a new URL? Wouldn't I need to clear the buffers from the previous stream?
The idea is to allow users select a program from the EPG and play it.
Basically it works like this: IPTV providers have an API for accessing the archive, usually it's a custom URL with a placeholder for one or more timestamps.
The Archive feature also allows us to have 'pseudo-timeshift'. This also allows you to have a timeshift buffer that is as long as the whole archive duration, because nothing is physically stored on your device. This can be days worth of timeshifting.
This requires us to close the stream and reopen it again with a new URL. I've got it working with some modifications to both Kodi and the IPTV Simple Client. But I would like to avoid any Kodi modifications that "bend" it to work with the custom implementation I came up with.
I'm not sure how to properly implement it without writing a complete Demux on IPTV Simple Client's side.
I tried to get it working by using vuplus as a template. I Created a CURL file object with the URL to the channel (it is a m3u8 playlist containing the stream list for the channel), it starts playing the channel, but instead of passing the URL as is, it's extracting one the TS streams and so playback ends after just a few seconds.
I'm looking for suggestions on how to proceed from this point forward.
How can I open the stream correctly with the proper URL passed on to the Demux object?
And is it possible to close the stream and open a new one with a new URL? Wouldn't I need to clear the buffers from the previous stream?