Skip to content

Commit

Permalink
fix: add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Dec 26, 2024
1 parent 384a4e7 commit 835e356
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ export class HMSAudioPluginsManager {

private async initAudioNodes() {
if (this.audioContext) {
// recreate this again, irrespective of it being already there so that the latest native track is used in source node
const audioStream = new MediaStream([this.hmsTrack.nativeTrack]);
this.sourceNode = this.audioContext.createMediaStreamSource(audioStream);
if (!this.destinationNode) {
Expand Down

0 comments on commit 835e356

Please sign in to comment.