From 2a44f20294ce6924f8cf5ed6516294950864212f Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Wed, 13 Mar 2024 14:27:07 +0100 Subject: [PATCH] openvidu-browser: fix video element removal from StreamManager collection --- 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 eeda46d35b..23251a4eba 100644 --- a/openvidu-browser/src/OpenVidu/StreamManager.ts +++ b/openvidu-browser/src/OpenVidu/StreamManager.ts @@ -484,7 +484,7 @@ export abstract class StreamManager extends EventDispatcher { // Remove srcObject from the video this.removeSrcObject(streamManagerVideo); // Remove from collection of videos every video managed by OpenVidu Browser - this.videos.filter((v) => !v.targetElement); + this.videos = this.videos.filter((v) => !v.targetElement); }); }