Don't send the 'media not flowing' event until we figure things out

This commit is contained in:
Lucas Zawacki 2017-12-15 13:57:29 -02:00
parent 1e514aad04
commit ecda3f460e

View File

@ -82,13 +82,13 @@ module.exports = class Video {
console.log(' [video] ' + msEvent.type + '[' + msEvent.state + ']' + ' for endpoint ' + this.id);
if (msEvent.state === 'NOT_FLOWING') {
this.bbbGW.publish(JSON.stringify({
connectionId: this.sessionId,
type: 'video',
role: this.role,
id : 'playStop',
cameraId: this.id,
}), C.FROM_VIDEO);
// this.bbbGW.publish(JSON.stringify({
// connectionId: this.sessionId,
// type: 'video',
// role: this.role,
// id : 'playStop',
// cameraId: this.id,
// }), C.FROM_VIDEO);
}
else if (msEvent.state === 'FLOWING') {
this.bbbGW.publish(JSON.stringify({