console.info(TAG+functionTag+"Entering cameraInput open with camera: "+camerasArray[i].cameraId);
console.info(TAG+functionTag+"Entering SUB_MULTIMEDIA_CAMERA_CAMERA_INPUT_OPEN_CLOSE_RELEASE_PROMISE_0100 cameraInput open with camera: "+camerasArray[i].cameraId);
awaitcameraInput.open().then(async()=>{
awaitcameraInput.open().then(async()=>{
console.info(TAG+functionTag+" PASSED open with CameraID :"+camerasArray[i].cameraId);
successFlag=true;
console.info(TAG+functionTag+" SUB_MULTIMEDIA_CAMERA_CAMERA_INPUT_OPEN_CLOSE_RELEASE_PROMISE_0100 PASSED open with CameraID :"+camerasArray[i].cameraId);
}).catch((err)=>{
}).catch((err)=>{
successFlag=false;
successFlag=false;
console.info(TAG+functionTag+" open FAILED: "+err.message);
console.info(TAG+functionTag+" SUB_MULTIMEDIA_CAMERA_CAMERA_INPUT_OPEN_CLOSE_RELEASE_PROMISE_0100 open FAILED: "+err.message);
});
});
awaitsleep(400);
awaitsleep(400);
successFlag=false;
awaitcameraInput.close().then(async()=>{
awaitcameraInput.close().then(async()=>{
console.info(TAG+functionTag+" PASSED close with CameraID :"+camerasArray[i].cameraId);
successFlag=true;
console.info(TAG+functionTag+" SUB_MULTIMEDIA_CAMERA_CAMERA_INPUT_OPEN_CLOSE_RELEASE_PROMISE_0100 PASSED close with CameraID :"+camerasArray[i].cameraId);
}).catch((err)=>{
}).catch((err)=>{
successFlag=false;
successFlag=false;
console.info(TAG+functionTag+" close FAILED: "+err.message);
console.info(TAG+functionTag+" SUB_MULTIMEDIA_CAMERA_CAMERA_INPUT_OPEN_CLOSE_RELEASE_PROMISE_0100 close FAILED: "+err.message);
});
});
awaitsleep(100);
awaitsleep(100);
successFlag=false;
awaitcameraInput.release().then(async()=>{
awaitcameraInput.release().then(async()=>{
console.info(TAG+functionTag+" PASSED release with CameraID :"+camerasArray[i].cameraId);
successFlag=true;
console.info(TAG+functionTag+" SUB_MULTIMEDIA_CAMERA_CAMERA_INPUT_OPEN_CLOSE_RELEASE_PROMISE_0100 PASSED release with CameraID :"+camerasArray[i].cameraId);