openvidu-browser: fix ExceptionEvent NO_STREAM_PLAYING_EVENT (triggered by Session)

pull/630/head
pabloFuente 2021-05-26 13:01:35 +02:00
parent 2cdf58f523
commit 05718efc2e
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}