@newtonschool/react_proctoring_library 0.0.48 → 0.0.50
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.
|
@@ -44,7 +44,8 @@ const WebcamActivityTracker = _ref => {
|
|
|
44
44
|
onUserMedia: () => {
|
|
45
45
|
setVideoPermission(true);
|
|
46
46
|
},
|
|
47
|
-
onUserMediaError:
|
|
47
|
+
onUserMediaError: err => {
|
|
48
|
+
console.log("Webcam Error", err);
|
|
48
49
|
setVideoPermission(false);
|
|
49
50
|
},
|
|
50
51
|
className: "captured-video-canvas hide",
|
|
@@ -137,7 +137,7 @@ const collectScreenshare = (screenshareReference, stream) => {
|
|
|
137
137
|
};
|
|
138
138
|
exports.collectScreenshare = collectScreenshare;
|
|
139
139
|
const resetScreenshotReference = screenshareReference => {
|
|
140
|
-
screenshareReference.current = null;
|
|
140
|
+
screenshareReference.current.srcObject = null;
|
|
141
141
|
};
|
|
142
142
|
exports.resetScreenshotReference = resetScreenshotReference;
|
|
143
143
|
const resetWebcamReference = webcamReference => {
|