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.6 -r1.1.2.7 --- openacs-4/packages/proctoring-support/www/resources/proctoring.js 7 Oct 2020 10:12:31 -0000 1.1.2.6 +++ openacs-4/packages/proctoring-support/www/resources/proctoring.js 22 Oct 2020 14:22:20 -0000 1.1.2.7 @@ -398,7 +398,9 @@ this.maxAudioDuration).start(); } this.streams[i] = stream; - this.videos[i] = this.createVideo(stream); + if (stream.getVideoTracks().length > 0) { + this.videos[i] = this.createVideo(stream); + } this.numActiveStreams++; this.numCheckedStreams++; } @@ -529,7 +531,7 @@ throw "stream is not active"; } else if (this.streamMuted(stream)) { throw "stream is muted"; - } else if (this.ready && video.paused) { + } else if (this.ready && video && video.paused) { throw "video acquisition appears to have stopped"; } } catch (e) { @@ -794,9 +796,9 @@ } this.ready = true; } - // For every configured stream, take a picture + // For every configured video stream, take a picture for (var i = 0; i < this.streams.length; i++) { - if (this.streams[i] != null) { + if (this.videos[i]) { this.takeShot(this.streams[i], this.mediaConf[this.streamNames[i]].grayscale); } }