From a60cf69522cb48966870bb2c60f43ff57710a8f5 Mon Sep 17 00:00:00 2001 From: prlanzarin Date: Mon, 28 Sep 2020 16:45:21 +0000 Subject: [PATCH] [video] Fix server-side video eject on media timeout --- lib/video/video.js | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/lib/video/video.js b/lib/video/video.js index a42158ae..0f5988fe 100644 --- a/lib/video/video.js +++ b/lib/video/video.js @@ -296,17 +296,13 @@ module.exports = class Video extends BaseProvider { } sendPlayStop () { - let userCamEvent = - Messaging.generateUserCamBroadcastStoppedEventMessage2x(this.meetingId, this.id, this.id); - this.bbbGW.publish(userCamEvent, C.TO_AKKA_APPS_CHAN_2x); + const userCamEvent = Messaging.generateUserCamBroadcastStoppedEventMessage2x( + this.meetingId, + this.bbbUserId, + this.id + ); - this.bbbGW.publish(JSON.stringify({ - connectionId: this.connectionId, - type: 'video', - role: this.role, - id : 'playStop', - cameraId: this.id, - }), C.FROM_VIDEO); + this.bbbGW.publish(userCamEvent, C.TO_AKKA_APPS_CHAN_2x); } /* ======= RECORDING METHODS ======= */