mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: fix ExceptionEvent NO_STREAM_PLAYING_EVENT (triggered by Session)
parent
2cdf58f523
commit
05718efc2e
|
@ -575,7 +575,7 @@ export class StreamManager extends EventDispatcher {
|
||||||
this.streamPlayingEventExceptionTimeout = setTimeout(() => {
|
this.streamPlayingEventExceptionTimeout = setTimeout(() => {
|
||||||
const msg = 'StreamManager of Stream ' + this.stream.streamId + ' (' + (this.remote ? 'Subscriber' : 'Publisher') + ') did not trigger "streamPlaying" event in ' + msTimeout + ' ms';
|
const msg = 'StreamManager of Stream ' + this.stream.streamId + ' (' + (this.remote ? 'Subscriber' : 'Publisher') + ') did not trigger "streamPlaying" event in ' + msTimeout + ' ms';
|
||||||
logger.warn(msg);
|
logger.warn(msg);
|
||||||
this.emitEvent('exception', [new ExceptionEvent(this.stream.session, ExceptionEventName.NO_STREAM_PLAYING_EVENT, this, msg)]);
|
this.stream.session.emitEvent('exception', [new ExceptionEvent(this.stream.session, ExceptionEventName.NO_STREAM_PLAYING_EVENT, this, msg)]);
|
||||||
delete this.streamPlayingEventExceptionTimeout;
|
delete this.streamPlayingEventExceptionTimeout;
|
||||||
}, msTimeout);
|
}, msTimeout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue