Skip to content

Commit

Permalink
[video] Fix server-side video eject on media timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
prlanzarin committed Oct 15, 2020
1 parent dbc25d0 commit a60cf69
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions lib/video/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 ======= */
Expand Down

0 comments on commit a60cf69

Please sign in to comment.