UNPKG

692 BPlain TextView Raw
1/**
2 * A configuration object to request custom capabilities when accessing a camera.
3 */
4export interface CameraSettings {
5 /**
6 * The preferred video frame resolution (not guaranteed to be precise depending on device, could be imprecise/lower).
7 */
8 readonly resolutionPreference: CameraSettings.ResolutionPreference;
9}
10
11export namespace CameraSettings {
12 /**
13 * Video frame resolution request (not guaranteed to be precise depending on device, could be imprecise/lower).
14 */
15 export enum ResolutionPreference {
16 /**
17 * Resolution of around 1080p (or less).
18 */
19 FULL_HD = "full-hd",
20 /**
21 * Resolution of around 720p (or less).
22 */
23 HD = "hd"
24 }
25}