question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

mediaStreamTrackMuteChanged is not implemented for audio tracks

See original GitHub issue

Expected behavior

When an audio track is muted, the onmute event should be fired. Accordingly onunmute should be fired when unmuting.

Observerd behavior

onmute, onunmute are fired only on video tracks.

Steps to reproduce the problem

Mute an audio track having registered callbacks for onmute, onunmute.

Platform information

iOS, Android.

  • React Native version: 0.59.4
  • Plugin version: 1.75.0
  • OS:
  • OS version:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
saghulcommented, Oct 1, 2022

Note that that’s for video tracks not audio tracks.

I’m going to close this. If nothing has happened in 3 years there is no point in keeping it open.

0reactions
8BallBomBomcommented, Oct 1, 2022

Implemented recently, take a look over here. Should be included with this beta release. But will also be included with the next stable release.

Edit: Oops didn’t notice it was only for video tracks 😮

Read more comments on GitHub >

github_iconTop Results From Across the Web

MediaStreamTrack.muted - Web APIs | MDN
The muted read-only property of the MediaStreamTrack interface returns a boolean value indicating whether or not the track is currently ...
Read more >
MediaStreamTrack.muted flag should not be modified when ...
When a track is disabled by setting enabled to false, it generates only empty frames (audio frames in which every sample is 0,...
Read more >
931033 - Video Track repeatedly firing muted and unmuted ...
You repeatedly get 'muted' and 'unmuted' events on the video track. This does not happen when you share the screen or an application...
Read more >
iOS 13.1 MediaStreamTrack.enabled = false kills audio track
Workaround as suggested by fippo/philipp: Use replaceTrack(null) to remove the audio track from the PC instead of muting it. Remember to not add ......
Read more >
Media Capture and Streams - W3C
A MediaStreamTrack is muted when the source is temporarily unable to provide the track with data.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found