All files / src/lib cameraSettings.ts

100% Statements 4/4
100% Branches 4/4
100% Functions 2/2
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

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