- From: Ilkka Oksanen via cvs-syncmail <cvsmail@w3.org>
- Date: Tue, 21 Sep 2010 20:29:54 +0000
- To: public-dap-commits@w3.org
Update of /sources/public/2009/dap/camera In directory hutz:/tmp/cvs-serv3175 Modified Files: Overview-API.html Log Message: Added new error code. Index: Overview-API.html =================================================================== RCS file: /sources/public/2009/dap/camera/Overview-API.html,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- Overview-API.html 21 Sep 2010 13:04:50 -0000 1.25 +++ Overview-API.html 21 Sep 2010 20:29:52 -0000 1.26 @@ -70,9 +70,11 @@ function error(err) { if (err.code === err.CAPTURE_INTERNAL_ERR) { - alert("The capture failed due to an internal error"); + alert("The capture failed due to an internal error."); + } + else { + alert("Other error occured."); } - } navigator.device.capture.captureImage(success, error, { limit: 1 }); @@ -396,8 +398,10 @@ <dd>Camera or microphone failed to capture image or sound. </dd> <dt>const unsigned short CAPTURE_APPLICATION_BUSY = 1 </dt> <dd>Camera application or audio capture application is currently serving other capture request.</dd> - <dt>const unsigned short CAPTURE_INVALID_ARGUMENT = 1 </dt> + <dt>const unsigned short CAPTURE_INVALID_ARGUMENT = 2 </dt> <dd>Invalid use of the API (e.g. limit parameter has value less than one).</dd> + <dt>const unsigned short CAPTURE_NO_MEDIA_FILES = 3 </dt> + <dd>User exited camera application or audio capture application before capturing anything.</dd> <dt>readonly attribute unsigned short code </dt> <dd>An error code assigned by an implementation when an error has occurred in Capture API processing.</dd>
Received on Tuesday, 21 September 2010 20:29:56 UTC