Skip to content

Commit

Permalink
Remove browser tab mic indicator
Browse files Browse the repository at this point in the history
by stopping micStream tracks
  • Loading branch information
microbit-grace committed Apr 11, 2024
1 parent 5907c05 commit 4ed8c93
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/board/audio/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ export class BoardAudio {
recorder.disconnect();
gain.disconnect();
source.disconnect();
micStream.getTracks().forEach(track => track.stop())
this.stopActiveRecording = undefined;
};
}
Expand Down

0 comments on commit 4ed8c93

Please sign in to comment.