The HTML Capture attribute open device camera to capture image followed by accept attribute. The capture attribute takes as it's value a string that specifies which camera to use for capture of image or video. To record video pass video to accept attribute: capture="user" capture="environment" capture='environment" - Open back camera.

1m read timeFrom dev.to
Post cover image
Table of contents
2 Comments

Sort: