From 79722c7a4be5a90e7d026c2c7f30035fbe6fb78d Mon Sep 17 00:00:00 2001 From: Kaustubh Kumar Date: Thu, 23 May 2024 15:41:15 +0530 Subject: [PATCH] fix: vb disappears after returning from bg in mweb (#2929) * fix: vb disappears after returning from bg in mweb * fix: vb disappears after returning from bg in mweb --- packages/hms-video-store/src/media/tracks/HMSLocalVideoTrack.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/hms-video-store/src/media/tracks/HMSLocalVideoTrack.ts b/packages/hms-video-store/src/media/tracks/HMSLocalVideoTrack.ts index 013b08236c..23ed9b39b2 100644 --- a/packages/hms-video-store/src/media/tracks/HMSLocalVideoTrack.ts +++ b/packages/hms-video-store/src/media/tracks/HMSLocalVideoTrack.ts @@ -493,7 +493,7 @@ export class HMSLocalVideoTrack extends HMSVideoTrack { this.replaceSenderTrack(this.nativeTrack); } else { this.nativeTrack.enabled = this.enabledStateBeforeBackground; - this.replaceSenderTrack(this.nativeTrack); + this.replaceSenderTrack(this.processedTrack || this.nativeTrack); } this.eventBus.localVideoEnabled.publish({ enabled: this.nativeTrack.enabled, track: this }); };