mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-11-20 01:50:24 -05:00
view in-progress recordings!
The time from recorded to viewable was previously 60-120 sec for the first recording of a RTSP session, 0-60 sec otherwise. Now it's one frame.
This commit is contained in:
@@ -85,6 +85,9 @@ function onSelectVideo(camera, streamType, range, recording) {
|
||||
if (trim && recording.endTime90k > range.endTime90k) {
|
||||
rel += range.endTime90k - recording.startTime90k;
|
||||
endTime90k = range.endTime90k;
|
||||
} else if (recording.growing !== undefined) {
|
||||
// View just the portion described here.
|
||||
rel += recording.endTime90k - recording.startTime90k;
|
||||
}
|
||||
if (rel !== '-') {
|
||||
url += '.' + rel;
|
||||
|
||||
Reference in New Issue
Block a user