ReadonlyactiveThe active read-only property of the true if the stream is currently active; otherwise, it returns false.
ReadonlycapabilitiesCapabilities of the camera.
Current effect applied to the camera preview/capture.
Exposure compensation index.
Current flash mode.
ReadonlyfocalFocal length in millimeters.
ReadonlyfocusMaximum focus distance in meters.
ReadonlyfocusMinimum focus distance in meters.
ReadonlyfocusOptimum focus distance in meters.
Current focus mode.
ReadonlyidThe id read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.
ISO sensitivity mode.
Metering mode.
Event handler for camera close events.
Event handler for configuration changes.
Event handler for face detection events.
Event handler for focus events.
Event handler for picture events.
Event handler for poster creation events.
Event handler for preview state changes.
Event handler for recorder state changes.
Event handler for shutter events.
Picture quality setting.
Current scene mode.
ReadonlysensorOrientation of the sensor relative to the device.
Current white balance mode.
Current zoom level.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe addTrack() method of the MediaStream interface adds a new track to the stream.
The clone() method of the MediaStream interface creates a duplicate of the MediaStream.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The getAudioTracks() method of the stream's track set where MediaStreamTrack.kind is audio.
The getTrackById() method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string.
The getTracks() method of the stream's track set, regardless of MediaStreamTrack.kind.
The getVideoTracks() method of the js-nolint getVideoTracks() None.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeTrack() method of the MediaStream interface removes a js-nolint removeTrack(track) - track - : A MediaStreamTrack that will be removed from the stream.
Sets the camera configuration.
Optionalconfiguration: CameraConfigurationNew configuration.
Promise resolving to the applied configuration.
Sets the focus areas.
OptionalfocusAreas: CameraRegion[]Array of regions for focus.
Sets the metering areas.
OptionalmeteringAreas: CameraRegion[]Array of regions for metering.
Starts recording video.
Recording options.
Storage area to save the video.
Name of the file.
Captures a picture.
Optionaloptions: CameraPictureOptionsOptions for the picture.
Promise resolving to a Blob containing the picture.
Controls the camera device. Maps to nsDOMCameraControl.