@newtonschool/react_proctoring_library 0.0.73 → 0.0.74
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.
|
@@ -84,7 +84,6 @@ function ElectronScreenShare(_ref) {
|
|
|
84
84
|
if (streamDeviceId && config !== null && config !== void 0 && (_config$fileUploadCon = config.fileUploadConfig) !== null && _config$fileUploadCon !== void 0 && _config$fileUploadCon.screenShare && config !== null && config !== void 0 && config.recurring) {
|
|
85
85
|
const snapshotIntervalID = startScreenShareSnapshot(streamDeviceId);
|
|
86
86
|
return () => {
|
|
87
|
-
console.log(snapshotIntervalID, 'snapshotIntervalID');
|
|
88
87
|
endScreenShareSnapshot(snapshotIntervalID);
|
|
89
88
|
};
|
|
90
89
|
}
|
|
@@ -61,6 +61,14 @@ function ElectronWebCam(_ref) {
|
|
|
61
61
|
const permissionGranted = await window.electron.actions.startWebCamRecording(devices[0].deviceId);
|
|
62
62
|
if (permissionGranted) {
|
|
63
63
|
device.setWebCamDeviceId(devices[0].deviceId);
|
|
64
|
+
navigator.mediaDevices.getUserMedia({
|
|
65
|
+
video: true
|
|
66
|
+
}).then(streams => {
|
|
67
|
+
const stream = streams.getVideoTracks()[0];
|
|
68
|
+
webcamReference.current = {
|
|
69
|
+
stream
|
|
70
|
+
};
|
|
71
|
+
});
|
|
64
72
|
} else {
|
|
65
73
|
throw new Error('Error starting webcam recording');
|
|
66
74
|
}
|
|
@@ -70,14 +78,6 @@ function ElectronWebCam(_ref) {
|
|
|
70
78
|
video: (error === null || error === void 0 ? void 0 : error.message) || 'Error starting webcam recording'
|
|
71
79
|
}));
|
|
72
80
|
}
|
|
73
|
-
// navigator.mediaDevices
|
|
74
|
-
// .getUserMedia({
|
|
75
|
-
// video: true,
|
|
76
|
-
// })
|
|
77
|
-
// .then((streams) => {
|
|
78
|
-
// const stream = streams.getVideoTracks()[0];
|
|
79
|
-
// webcamReference.current = { stream };
|
|
80
|
-
// });
|
|
81
81
|
}
|
|
82
82
|
}));
|
|
83
83
|
}, []);
|