mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-12-08 08:42:41 -05:00
ui list view: tool tip to see why recording ended
Users are often puzzled why there are short recordings. Previously the only way to see this was to examine Moonfire's logs. This should be a much better experience to find it right in the UI where you're wondering, and without the potential the logs are gone. Fixes #302
This commit is contained in:
@@ -111,8 +111,8 @@ impl Service {
|
||||
let mut rows = 0;
|
||||
db.list_recordings_by_id(stream_id, live.recording..live.recording + 1, &mut |r| {
|
||||
rows += 1;
|
||||
builder.append(&db, &r, live.media_off_90k.clone(), start_at_key)?;
|
||||
row = Some(r);
|
||||
builder.append(&db, r, live.media_off_90k.clone(), start_at_key)?;
|
||||
Ok(())
|
||||
})?;
|
||||
}
|
||||
|
||||
@@ -486,6 +486,7 @@ impl Service {
|
||||
video_sample_entry_id: row.video_sample_entry_id,
|
||||
growing: row.growing,
|
||||
has_trailing_zero: row.has_trailing_zero,
|
||||
end_reason: row.end_reason.clone(),
|
||||
});
|
||||
if !out
|
||||
.video_sample_entries
|
||||
|
||||
@@ -141,7 +141,7 @@ impl Service {
|
||||
r.wall_duration_90k,
|
||||
r.media_duration_90k,
|
||||
);
|
||||
builder.append(&db, r, mr, true)?;
|
||||
builder.append(&db, &r, mr, true)?;
|
||||
} else {
|
||||
trace!("...skipping recording {} wall dur {}", r.id, wd);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user