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]);
}