Use full resolution aspect ratio when available (#11173)

* base recordings and live views off of actual video resolution

* don't set for jsmpeg

* reset when changing main cam

* rename

* Only use resolution for main camera

* fix lint

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Josh HawkinsandNicolas Mowen authored and GitHub committed 2024-04-30 06:52:56 -06:00
1 parent 1c9626ecff
commit 11ff7cb2b7
8 files changed
+100 -13

No files matched your search

+4
View File
@@ -1 +1,5 @@
export type LivePlayerMode = "webrtc" | "mse" | "jsmpeg" | "debug";
export type VideoResolutionType = {
width: number;
height: number;
};
+3
View File
@@ -38,3 +38,6 @@ export type RecordingStartingPoint = {
startTime: number;
severity: ReviewSeverity;
};
export const ASPECT_VERTICAL_LAYOUT = 1.5;
export const ASPECT_WIDE_LAYOUT = 2;