The ButtonCameraImage class takes photo from camera and inserts it to the content.
- key static
Displays error message in case of video stream capturing failure.
The fired event in case of error.
Starts streaming video in the video element and sets width/height to the video and canvas elements.
The video stream
Lifecycle. Invoked once, only on the client, immediately after the initial rendering occurs.
Focuses the take photo button.
Lifecycle. Invoked immediately before a component is unmounted from the DOM.
Lifecycle. Returns the default values of the properties used in the widget.
Lifecycle. Renders the UI of the button.
The content which should be rendered.
Takes photo from the video stream and inserts in into editor's content.
The name which will be used as an alias of the button in the configuration.
Fired when an image is being taken from the camera and added as an element to the editor.
The created img element in editor.