# AUTO GENERATED FILE - DO NOT EDIT

from dash.development.base_component import Component, _explicitize_args


class DashCam(Component):
    """A DashCam component.
ExampleComponent is an example component.
It takes a property, `label`, and
displays it.
It renders an input with the property `value`
which is editable by the user.

Keyword arguments:

- id (string; optional):
    The ID used to identify this component in Dash callbacks.

- audio (boolean; default True):
    enable/disable audio.

- className (string; default ''):
    CSS class of video element.

- height (number; default 480):
    height of video element.

- screenshot (string; optional):
    getScreenshot() returns a base64 encoded string of the current
    webcam image. screenshot is the prop updated at fixed interval
    from calling getScreenshot(). It is currently capped at 25 fps.

- screenshotFormat (string; default "image/webp"):
    format of screenshot.

- screenshotHeight (number; default 480):
    width of screenshot.

- screenshotInterval (number; optional):
    update interval of screenshot in milliseconds.

- screenshotQuality (number; default 0.92):
    quality of screenshot(0 to 1).

- screenshotWidth (number; default 640):
    width of screenshot.

- videoConstraints (dict; default {    exact: "environment"}):
    Select Front and back.

- width (number; default 640):
    width of video element."""
    _children_props = []
    _base_nodes = ['children']
    _namespace = 'dash_cam'
    _type = 'DashCam'
    @_explicitize_args
    def __init__(self, id=Component.UNDEFINED, className=Component.UNDEFINED, audio=Component.UNDEFINED, height=Component.UNDEFINED, width=Component.UNDEFINED, screenshotWidth=Component.UNDEFINED, screenshotHeight=Component.UNDEFINED, screenshotFormat=Component.UNDEFINED, screenshotQuality=Component.UNDEFINED, screenshotInterval=Component.UNDEFINED, screenshot=Component.UNDEFINED, videoConstraints=Component.UNDEFINED, **kwargs):
        self._prop_names = ['id', 'audio', 'className', 'height', 'screenshot', 'screenshotFormat', 'screenshotHeight', 'screenshotInterval', 'screenshotQuality', 'screenshotWidth', 'videoConstraints', 'width']
        self._valid_wildcard_attributes =            []
        self.available_properties = ['id', 'audio', 'className', 'height', 'screenshot', 'screenshotFormat', 'screenshotHeight', 'screenshotInterval', 'screenshotQuality', 'screenshotWidth', 'videoConstraints', 'width']
        self.available_wildcard_properties =            []
        _explicit_args = kwargs.pop('_explicit_args')
        _locals = locals()
        _locals.update(kwargs)  # For wildcard attrs and excess named props
        args = {k: _locals[k] for k in _explicit_args if k != 'children'}
        for k in []:
            if k not in args:
                raise TypeError(
                    'Required argument `' + k + '` was not specified.')
        super(DashCam, self).__init__(**args)
