@newtonschool/react_proctoring_library 0.0.88 → 0.0.89
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.
|
@@ -82,7 +82,7 @@ function ElectronScreenShare(_ref) {
|
|
|
82
82
|
const isRecurring = config === null || config === void 0 ? void 0 : config.recurring;
|
|
83
83
|
const screenShareConfig = config === null || config === void 0 ? void 0 : (_config$fileUploadCon = config.fileUploadConfig) === null || _config$fileUploadCon === void 0 ? void 0 : _config$fileUploadCon.screenShare;
|
|
84
84
|
(0, _react.useEffect)(() => {
|
|
85
|
-
console.log('streamDeviceId', streamDeviceId);
|
|
85
|
+
console.log('streamDeviceId, isRecurring, screenShareConfig', streamDeviceId, isRecurring, screenShareConfig);
|
|
86
86
|
if (streamDeviceId && screenShareConfig && isRecurring) {
|
|
87
87
|
const snapshotIntervalID = startScreenShareSnapshot(streamDeviceId);
|
|
88
88
|
return () => {
|
|
@@ -91,6 +91,7 @@ function ElectronScreenShare(_ref) {
|
|
|
91
91
|
}
|
|
92
92
|
}, [streamDeviceId, isRecurring, screenShareConfig]);
|
|
93
93
|
(0, _react.useEffect)(() => {
|
|
94
|
+
console.log('streamDeviceId', streamDeviceId);
|
|
94
95
|
const permissionSetter = permission => {
|
|
95
96
|
setScreensharePermission(permission);
|
|
96
97
|
};
|
|
@@ -102,5 +103,6 @@ function ElectronScreenShare(_ref) {
|
|
|
102
103
|
window.electron.listener.removeListener(id, permissionSetter);
|
|
103
104
|
};
|
|
104
105
|
}, [streamDeviceId]);
|
|
106
|
+
console.log('streamDeviceId', isRecurring, screenShareConfig, streamDeviceId);
|
|
105
107
|
return null;
|
|
106
108
|
}
|