forked from Github/frigate
Motion playback (#10609)
* Move controls to separate component and make features configurable * Allow playback on motion screen * Simplify layout * Fix seeking * Fix playback * fix preview scrubbing * Fix player controls visibility * Use opacity for both dark and light mode
This commit is contained in:
@@ -353,7 +353,7 @@ function PreviewFramesPlayer({
|
||||
|
||||
return previewFrames.map((frame) =>
|
||||
// @ts-expect-error we know this item will exist
|
||||
parseFloat(frame.split("-").slice(undefined, -5)),
|
||||
parseFloat(frame.split("-").at(-1).slice(undefined, -5)),
|
||||
);
|
||||
}, [previewFrames]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user