muted property

  1. @override
bool muted

Implementation

@override
bool get muted => _srcObject?.getAudioTracks()[0].muted ?? true;
  1. @override
void muted=(bool mute)

Implementation

@override
set muted(bool mute) {
  if (_disposed) {
    throw Exception('Can\'t be muted: The RTCVideoRenderer is disposed');
  }
  if (_srcObject == null) {
    throw Exception('Can\'t be muted: The MediaStream is null');
  }
  if (_srcObject!.ownerTag != 'local') {
    throw Exception(
        'You\'re trying to mute a remote track, this is not supported');
  }
  if (_srcObject!.getAudioTracks().isEmpty) {
    throw Exception('Can\'t be muted: The MediaStreamTrack(audio) is empty');
  }

  Helper.setMicrophoneMute(mute, _srcObject!.getAudioTracks()[0]);
}