mirror of https://github.com/OpenVidu/openvidu.git
Update Session.ts
parent
91ffb266c4
commit
182422f09f
|
@ -833,7 +833,9 @@ export class Session implements EventDispatcher {
|
|||
break;
|
||||
}
|
||||
this.ee.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent(this, stream, msg.property, msg.newValue, oldValue, msg.reason)]);
|
||||
stream.streamManager.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent(stream.streamManager, stream, msg.property, msg.newValue, oldValue, msg.reason)]);
|
||||
if (!!stream.streamManager) {
|
||||
stream.streamManager.emitEvent('streamPropertyChanged', [new StreamPropertyChangedEvent(stream.streamManager, stream, msg.property, msg.newValue, oldValue, msg.reason)]);
|
||||
}
|
||||
} else {
|
||||
console.error("No stream with streamId '" + msg.streamId + "' found for connection '" + msg.connectionId + "' on 'streamPropertyChanged' event");
|
||||
}
|
||||
|
@ -1166,4 +1168,4 @@ export class Session implements EventDispatcher {
|
|||
this.openvidu.wsUri = 'wss://' + url.host + '/openvidu';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue