Posts: 35
Joined: Jan 2016
Reputation:
6
I saw that project.
What I'm after is implementing seek without being bound to a local buffer. I can tell you from personal experience, once you get to experience just seeking where you want in the timeline without any limits, you just won't want to go back to anything less than that.
It's just a great viewing experience. A local record buffer can't give you that. It can let you seek back a little with a finer granularity, but you don't get the freedom to just switch to what you want to watch with a few clicks on the remote.
And to extend on the above, it would be extremely useful to be able to play an EPG tag in "timeshift" mode instead of as a "video" like it's done right now.
But for starters we need to figure out how to at the very least fix the current EPG playback not showing any times. (see screenshot on previous page)
Posts: 35
Joined: Jan 2016
Reputation:
6
We are both working on the same idea, but I don't think it's the same code.
1) With my IPTV service and the changes I pushed to iptvsimple, EPG playback starts and plays, but as you can see from the screenshot on the previous page, time information is missing and the seek controls are disabled.
And it's being played as a "video", so it suggests there's a start and an end to that program. That makes sense for VOD, but I don't think it makes much sense when we're talking about TV. In reality, the stream will play until you stop it, it doesn't have an end.
I think there should be an option to play a program from EPG as if you started Live TV playback and timeshifted back to the point when the selected EPG event started.
Again, we're working with realtime streams. So if we ignore the possibility of a locally stored buffer for a minute, you can't seek within the stream like you can with Zattoo. To "seek" you need to close the current stream and open a new stream with a different timestamp in the URL.
2) With TV it's very important not to be constrained by the EPG event bounds, because a program can often start earlier or end after the EPG event bounds. That's why we added the "hack" in Kodi to allow to play an EPG tag in Live TV mode, the way it works from a user's perspective is just awesome.
The hacks we made to Kodi in my CoreELEC PR were mainly required because the InputStream and Demuxer Kodi uses with my IPTV channels do not poll the addon for anything, not times, not length, not the possibility to seek, and of course there was no way to seek and restart the stream. But I utilized Kodi's timeshift support, and it worked great. It allows the user to seamlessly seek "down"/"up" across EPG events using the 'simulated' timeshift buffer.
Posts: 1,887
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,887
So, if this is all about seeking realtime streams with a (very large) server-side back buffer, then forget everything we discussed re EPG event playback. Just throw this idea/code away and go ahead and implement a custom demuxer and proper timeshift support. Then, you will get what you are looking for. No need to modify/extend Kodi core/API for that.
Posts: 1,887
Joined: Jan 2015
Reputation:
126
ksooo
Team-Kodi Developer
Posts: 1,887
Sorry, I'm out of ideas for the moment and do not have enough time to support this well and responsive enough.
I have to set my priorities (care about my payed job, my familiy, Kodi v18 todos, then v19 stuff).
We've got plenty of time for this stuff here as it seems it wont make it into v18 anymore.
So, as I wrote yesterday, if I have some new ideas I will share them here.
Posts: 2,518
Joined: May 2007
Reputation:
118
Trying to follow all the trains of thought here!
If you would like timeshift support (with a local buffer) in simpleIPTV just let me know.
It sounds like you need more time to design the solution before you will know this. Just tag me in a post when/if ready.
Posts: 2,518
Joined: May 2007
Reputation:
118
No worries, makes sense. Do all streams provide archive capability or just some?
It might make sense to support both, should be easy enough to enable one, the other or both via the addon settings if you want.
Let me know