From f62e4ded321e0534ffee59505c0bd9ebbf6c2e38 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Tue, 21 May 2024 15:42:16 +0530 Subject: [PATCH] fix: remove play callback --- packages/hms-video-store/src/media/tracks/VideoElementManager.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/hms-video-store/src/media/tracks/VideoElementManager.ts b/packages/hms-video-store/src/media/tracks/VideoElementManager.ts index bed6c201b8..151761e814 100644 --- a/packages/hms-video-store/src/media/tracks/VideoElementManager.ts +++ b/packages/hms-video-store/src/media/tracks/VideoElementManager.ts @@ -182,7 +182,6 @@ export class VideoElementManager { cleanup = () => { this.videoElements.forEach(videoElement => { videoElement.srcObject = null; - videoElement.removeEventListener('play', this.resumeVideoPlayback); videoElement.removeEventListener('pause', this.resumeVideoPlayback); this.resizeObserver?.unobserve(videoElement); this.intersectionObserver?.unobserve(videoElement);