Automatically enabling webcam in mozilla and chrome browsers

I am a java developer and in my project I have got a requirement that i have to record a video and i have to save it to database. When the request goes to video recording page every time it is asking to enable webcam and users are complaining about it. Is there any way to automatically enable webcam using java or by using angular js. here is my code in angular js.

<div id="divenablecamtxt" style="color: #ff0000; margin-bottom: 10px;">
  <div i18n="vid.enable" >Please face camera and click on   ENABLE CAMERA to start recording and say the above sentence during recording.</div>
</div>
<button class="CMN_Btns RedBG" type="button" id="enablecamera" value="ENABLE CAMERA" style="width: 180px;" i18n="video.ena" >ENABLE CAMERA</button>

screenshot of browser

Source: AngularJS