What is the best way to play/mute/stop/resume an audio only stream. Something similar to an
<audio> tag in HTML5.
If you want to mute mic you will have to get its mediastream track and set ‘enabled’ to false. The MediaStreamTrack object has an ‘enabled’ property that you can set to true to mute and false to unmute.
Here’s the implementation in react-native-webrtc: react-native-webrtc/MediaStreamTrack.js at 1343580c0322f265ff0fb22722ac5501c5fd77ad · react-native-webrtc/react-native-webrtc · GitHub