Unable to take photo from webcam using HTML5 and getUserMedia() in Google Chrome on first page load
问题 Taking reference from this article on HTML5Rocks I am trying to build a utility to take photo from webcam. Below is my HTML code snippet: <button type="button" name="btnCapture" id="btnCapture">Start my camera</button><br /> <video autoplay="true" id="video" style="height:240px;width:320px"></video><canvas id="canvas" style="display: none; height:240px;width:320px"></canvas><br /> <img id="capturedImage" src="/blank.gif" style="height:240px;width:320px"><input type="hidden" id="hdnImageBase64