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