Skip to content

Commit

Permalink
Call setMicrophoneActive(true) if user allows to unmute.
Browse files Browse the repository at this point in the history
  • Loading branch information
jianjunz committed Jun 28, 2024
1 parent 35afdfa commit 2bb2843
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1833,7 +1833,8 @@ media session</a>.
const track = stream.getAudioTracks()[0];
navigator.mediaSession.setActionHandler("voiceactivity", function() {
if (track.muted) {
// Show unmute notification.
// Show unmute notification. If user allows to unmute, call
// setMicrophoneActive(true) to unmute.
}
});
</pre>
Expand Down

0 comments on commit 2bb2843

Please sign in to comment.