Open to recordings with pre-buffer (#11143)

* Open to recordings with pre-buffer

* Reduce buffer

* Use variable for preview FPS
This commit is contained in:
Nicolas Mowen
2024-04-29 10:12:57 -06:00
committed by GitHub
parent 9117043adc
commit c9246bd4ab
4 changed files with 12 additions and 4 deletions

View File

@@ -1,3 +1,5 @@
import { REVIEW_PADDING } from "./review";
export type Preview = {
camera: string;
src: string;
@@ -5,3 +7,6 @@ export type Preview = {
start: number;
end: number;
};
export const PREVIEW_FPS = 8;
export const PREVIEW_PADDING = REVIEW_PADDING * PREVIEW_FPS;

View File

@@ -48,3 +48,5 @@ export type MotionData = {
audio?: number;
camera: string;
};
export const REVIEW_PADDING = 2;