When the server is recording, we put the program length in Duration field, not the current length. During playback, we display current length. If you record in jtv format, the client automatically updates the length while it increases. TS format maybe problematic.