Activates the camera flash light
A promise
This feature works on Google Chrome for Android and Safari 18.4+
OnlyAndroidChromeError This exception is thrown if the browser does not support this feature
OnlyAndroidChromeError
Mirrors the stream (i.E for front-facing cameras)
if the stream should be mirrored or not
Reappends the camera. This can help in case you experience a camera stream failure when resuming to the webapp after sleep / longer suspension.
example: globalThis.onfocus = () => anyline.camera.reappend();
Refocus the camera
This feature works currently only on Google Chrome for Android
OnlyAndroidChromeError This exception is thrown if the browser is not capabale of this feature
Sets a specific camera as input
the id of the camera
Activates the camera flash light