Req Sync file size and play time during fast forward / rewind / jump
#1
Problem: server records current TV (DVB-S) stream to harddisk. Client (Kodi) wants to play the file (which may be on a SMB share og the server), which works. But: Kodi only updates the filesize once upon start, so when the user fast forwards more than the initial filesize, Kodi is not able to jump to that point, because the file was smaller upon beginning playback. The user needs to stop the playback, and restart, which is annoying.

Solution: would be very simple, just check if the file has another size, and the play time has changed whenever a navigation operation like forwarding or jumping is initiated.

It would be very great if Kodi would be able to handle this. Thank you!
Reply
#2
(2017-08-13, 16:56)ErikDe Wrote: Solution: would be very simple, just check if the file has another size, and the play time has changed whenever a navigation operation like forwarding or jumping is initiated.

Aha, why don't you submit this change if it is so simple? How do you calculate playing time form file size?
Actually it is not that simple because duration is evaluated by ffmpeg demuxer in a very expensive operation at start of playback. Nevertheless, dynamic growing of files will be suppported by sources that implement the ITimes interface of InputStream: https://github.com/xbmc/xbmc/blob/master...ream.h#L73
Reply
#3
"Easy" meant that the idea how this could be done is easy, I am absolutely not familiar with how it is actually implemented, and there was absolutely no offense intended.

The sources you mention look promising, is it possible to say when this willa ctually work in Kodi?
Reply

Logout Mark Read Team Forum Stats Members Help
Sync file size and play time during fast forward / rewind / jump1