Index: openacs-4/packages/proctoring-support/lib/proctored-page.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/proctoring-support/lib/proctored-page.adp,v diff -u -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/proctoring-support/lib/proctored-page.adp 11 Aug 2020 09:05:49 -0000 1.1.2.2 +++ openacs-4/packages/proctoring-support/lib/proctored-page.adp 13 Aug 2020 09:31:16 -0000 1.1.2.3 @@ -115,5 +115,6 @@ var isMobile = @mobile_p;literal@; var nextLabel = "#acs-kernel.common_Next#"; var submitLabel = "#proctoring-support.wizard_finish#"; + var blackPictureSizeThreshold = 24000; // kbytes Index: openacs-4/packages/proctoring-support/www/resources/proctored-page.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/proctoring-support/www/resources/proctored-page.js,v diff -u -r1.1.2.2 -r1.1.2.3 --- openacs-4/packages/proctoring-support/www/resources/proctored-page.js 11 Aug 2020 09:05:49 -0000 1.1.2.2 +++ openacs-4/packages/proctoring-support/www/resources/proctored-page.js 13 Aug 2020 09:31:16 -0000 1.1.2.3 @@ -76,7 +76,9 @@ var uploadQueue = []; function scheduleUpload(name, type, blob) { - if (type == "image" && blob == null && blob.size <= 8000) { + if (type == "image" && + blob == null && + blob.size <= blackPictureSizeThreshold) { if (name == "camera") { modalAlert(blackPictureCameraMessage); } else { @@ -235,7 +237,8 @@ canvas.height = camvideo.videoHeight; canvas.getContext("2d").drawImage(camvideo, 0, 0, camvideo.videoWidth, camvideo.videoHeight); canvas.toBlob(function(blob) { - if (blob == null || blob.size < 24000) { + if (blob == null || + blob.size <= blackPictureSizeThreshold) { var errmsg = blackPictureCameraMessage; setError(errmsg); }