diff --git a/lib/video/VideoManager.js b/lib/video/VideoManager.js index ff817133..a7545aba 100755 --- a/lib/video/VideoManager.js +++ b/lib/video/VideoManager.js @@ -41,6 +41,7 @@ module.exports = class VideoManager extends BaseManager { let cameraId = message.cameraId; let shared = role === 'share' ? true : false; let iceQueue; + let record = message.record; Logger.debug(this._logPrefix, 'Received message =>', message); @@ -79,6 +80,7 @@ module.exports = class VideoManager extends BaseManager { userId, userName, sessionId, + record, ); this._sessions[sessionId] = video; } else { @@ -97,6 +99,7 @@ module.exports = class VideoManager extends BaseManager { userId, userName, sessionId, + record, ); this._sessions[sessionId] = video; } diff --git a/lib/video/video.js b/lib/video/video.js index 5b9fe5ea..e2897b52 100644 --- a/lib/video/video.js +++ b/lib/video/video.js @@ -30,6 +30,7 @@ module.exports = class Video extends BaseProvider { bbbUserId, bbbUserName, managerSessionId, + record = true, ) { super(bbbGW); this.sfuApp = C.VIDEO_APP; @@ -58,6 +59,7 @@ module.exports = class Video extends BaseProvider { this._stopActionQueued = false; this.handleMCSCoreDisconnection = this.handleMCSCoreDisconnection.bind(this); this.mcs.on(C.MCS_DISCONNECTED, this.handleMCSCoreDisconnection); + this.record = record; } _getLogMetadata () { @@ -310,7 +312,7 @@ module.exports = class Video extends BaseProvider { /* ======= RECORDING METHODS ======= */ shouldRecord () { - return this.isRecorded && this.shared; + return this.isRecorded && this.shared && this.record; } sendStartShareEvent(timestampHR, timestampUTC) { diff --git a/package-lock.json b/package-lock.json index 651f67e0..ab1711c6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "bbb-webrtc-sfu", - "version": "2.4.14", + "version": "2.4.15", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9090f19c..0adb817d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "bbb-webrtc-sfu", - "version": "2.4.14", + "version": "2.4.15", "private": true, "scripts": { "start": "node server.js",