@newtonschool/react_proctoring_library 0.0.23 → 0.0.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -162,14 +162,17 @@ const setupScreensharePermission = (setScreensharePermission, screenshareReferen
|
|
|
162
162
|
|
|
163
163
|
track.onended = e => {
|
|
164
164
|
setScreensharePermission(false);
|
|
165
|
+
console.log(e, "Track Onended Error");
|
|
165
166
|
screenshareReference.current.srcObject = null;
|
|
166
167
|
};
|
|
167
168
|
} else {
|
|
169
|
+
console.log("Display Surface != Monitor");
|
|
168
170
|
screenshareReference.current = null;
|
|
169
171
|
setScreensharePermission(false);
|
|
170
172
|
}
|
|
171
173
|
}).catch(e => {
|
|
172
174
|
screenshareReference.current = null;
|
|
175
|
+
console.log(e, "Try Catch Error");
|
|
173
176
|
setScreensharePermission(false);
|
|
174
177
|
});
|
|
175
178
|
|
|
@@ -215,6 +218,7 @@ const captureScreenshot = async () => {
|
|
|
215
218
|
try {
|
|
216
219
|
const canvas = await (0, _html2canvas.default)(document.querySelector("#ss-ref"));
|
|
217
220
|
const b64Snapshot = canvas.toDataURL("image/jpeg");
|
|
221
|
+
console.log(b64Snapshot);
|
|
218
222
|
return b64DataURItoBlob(b64Snapshot);
|
|
219
223
|
} catch (e) {// pass
|
|
220
224
|
}
|