Content length on recordings
|Assignee:||Andreas Öman||% Done:|
|Found in version:||Affected Versions:|
Streaming of a currently recording dvr results in length to be set to current file size. This means that the show will continue to grow during the streaming but a client is not able to get the added data. In HTTP standard its possible to set the length to 0 to show that the length is unkown, this would suite currently recording series well IMO.
On line 243 of webui.c (http://trac.lonelycoder.com/hts/browser/trunk/tvheadend/src/webui/webui.c#L243) the length of the dvr recording is set to active file length on disk. Would it be possible to do a IsRecording() ? 0 : st.size on it so streaming of currently recording files works?
#3 Updated by Andreas Öman almost 3 years ago
- Status changed from New to Fixed
- Found in version set to wontfix
I don't think this is the way to do streaming of currently recording shows.
The HTTP could output a matroska streaming file (where no seeking etc, will take place during writing)
and we could also support direct streaming via HTSP (Where seeking, demuxing is done on server side)
Just streaming bytes from a file that is currently being written is just bound to fail.