Add enhancement to camera

This commit is contained in:
afiq.hamzah
2023-05-23 15:42:11 +08:00
parent df8455a857
commit b5c092b73a
4 changed files with 7 additions and 9 deletions
+2 -4
View File
@@ -71,8 +71,6 @@ function marhunPhotoCapturerFactory(modal_selector) {
setMarhunPhotoInputToCapturedPhoto(blob)
}, 'image/png');
})
.catch((err) => {
@@ -161,8 +159,8 @@ function marhunPhotoCapturerFactory(modal_selector) {
function composeConstraint(camera) {
let constraints = {
width: { exact: 1920 },
height: { exact: 1080 },
width: { exact: 3200 },
height: { exact: 1800 },
};
if (camera.deviceId !== '') {