Index: openacs-4/packages/proctoring-support/www/resources/proctoring.js =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/proctoring-support/www/resources/Attic/proctoring.js,v diff -u -N -r1.1.2.7 -r1.1.2.8 --- openacs-4/packages/proctoring-support/www/resources/proctoring.js 22 Oct 2020 14:22:20 -0000 1.1.2.7 +++ openacs-4/packages/proctoring-support/www/resources/proctoring.js 31 Oct 2020 20:54:48 -0000 1.1.2.8 @@ -521,23 +521,23 @@ var streamName = this.streamNames[i]; var video = this.videos[i]; - if (this.mediaConf[streamName].required) { + if (typeof streamName !== "undefined" && this.mediaConf[streamName].required) { try { - if (this.streamErrors[i]) { + if (this.streamErrors[i]) { throw this.streamErrors[i]; - } else if (stream == null) { + } else if (stream == null) { throw "stream does not exist"; } else if (!stream.active) { throw "stream is not active"; } else if (this.streamMuted(stream)) { throw "stream is muted"; - } else if (this.ready && video && video.paused) { + } else if (this.ready && video && video.paused) { throw "video acquisition appears to have stopped"; } } catch (e) { this.isMissingStreams = true; if (typeof this.onMissingStreamHandler == 'function') { - this.onMissingStreamHandler(streamName, e); + this.onMissingStreamHandler(streamName, e); } } }