ng-camera icon indicating copy to clipboard operation
ng-camera copied to clipboard

How to stop camera without refresh?

Open CodeBreaker30 opened this issue 9 years ago • 3 comments

Hi, first of all thanks for your help with this. I want to know how to stop using camera once I got shot the picture. Can you help us?

CodeBreaker30 avatar Feb 19 '16 16:02 CodeBreaker30

Hi, have you successfully uploaded the captured image into php server? example after capturing the image you will save it temporarily and upload it to php server... Please reply i really need it.

ghost avatar Mar 07 '16 17:03 ghost

@CodeBreaker30 Wrap it in a div and use ng-if

<div ng-if="!vm.picture">
    <md-camera
        capture-message="Cheeeese!"
        output-height="320"
        output-width="426"
        crop-height="320"
        crop-width="320"
        viewer-height="160"
        viewer-width="213"
        image-format="jpeg"
        jpeg-quality="100"
        action-message="Take picture"
        snapshot="vm.picture"
        shutter-url="sounds/shutter.ogg">
    </md-camera>
</div>

flick36 avatar May 07 '16 19:05 flick36

@CodeBreaker30 This will just hide the view of camera, but still camera will get accessed by our browser, I am also looking for a solution, to on/off the camera manually using a button 🙃

msameerbm avatar Nov 05 '18 06:11 msameerbm