0

I want to take a pic with my browser and to save it in my disc. In this link https://davidwalsh.name/browser-camera i found how to take a pic,it is very easy but i can't save it.

  • 1
    To my knowledge, the browser only allows you to save files to a very specific limited space, that is some local folder in the temp app fodler whatnot. This would not be good for you. What i suggest you do is "download" the image instead. Google how to do that. It would allow you to save it where you want – Dellirium Jul 03 '18 at 10:56
  • What you are looking for is how to download you canvas image. See https://stackoverflow.com/a/15685544/10004860 – Victor Perez Jul 03 '18 at 11:09

1 Answers1

0

You can try Navigator.getUserMedia() It prompts the user for permission to use up to one video input device (such as a camera or shared screen).

navigator.getUserMedia(constraints, successCallback, errorCallback);

For further reference you can refer THIS documentation.

hondvryer
  • 442
  • 1
  • 3
  • 18