Skip to content

Commit

Permalink
openvidu-browser: fix video element removal from StreamManager collec…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
pabloFuente committed Mar 13, 2024
1 parent 49e2e87 commit 2a44f20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openvidu-browser/src/OpenVidu/StreamManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
}

Expand Down

0 comments on commit 2a44f20

Please sign in to comment.