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(() => {
|
||||
const msg = 'StreamManager of Stream ' + this.stream.streamId + ' (' + (this.remote ? 'Subscriber' : 'Publisher') + ') did not trigger "streamPlaying" event in ' + msTimeout + ' ms';
|
||||
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;
|
||||
}, msTimeout);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue