Skip to content

Commit

Permalink
fix: add comment to elaborate on cleanup order
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed Oct 8, 2024
1 parent d5896a8 commit 8ef5451
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ export class HMSLocalVideoTrack extends HMSVideoTrack {
*/
async cleanup() {
this.removeTrackEventListeners(this.nativeTrack);
// Stopping the plugin before cleaning the track is more predictable when dealing with 3rd party plugins
await this.mediaStreamPluginsManager.cleanup();
await this.pluginsManager.cleanup();
super.cleanup();
Expand Down

0 comments on commit 8ef5451

Please sign in to comment.