From 05718efc2e5aae7af7ab6f9c649cc4b1bdc4cc34 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Wed, 26 May 2021 13:01:35 +0200 Subject: [PATCH] openvidu-browser: fix ExceptionEvent NO_STREAM_PLAYING_EVENT (triggered by Session) --- openvidu-browser/src/OpenVidu/StreamManager.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openvidu-browser/src/OpenVidu/StreamManager.ts b/openvidu-browser/src/OpenVidu/StreamManager.ts index 08e5825f..e3190f6b 100644 --- a/openvidu-browser/src/OpenVidu/StreamManager.ts +++ b/openvidu-browser/src/OpenVidu/StreamManager.ts @@ -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); }