Skip to content

Commit

Permalink
fix: vb disappears after returning from bg in mweb
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed May 23, 2024
1 parent f3222f5 commit 8395a01
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,8 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
this.replaceSenderTrack(this.nativeTrack);
} else {
this.nativeTrack.enabled = this.enabledStateBeforeBackground;
this.replaceSenderTrack(this.nativeTrack);
this.processPlugins();
this.replaceSenderTrack(this.processedTrack || this.nativeTrack);
}
this.eventBus.localVideoEnabled.publish({ enabled: this.nativeTrack.enabled, track: this });
};
Expand Down

0 comments on commit 8395a01

Please sign in to comment.