muted property
Implementation
@override
bool get muted => _srcObject?.getAudioTracks()[0].muted ?? true;
Implementation
@override
set muted(bool mute) {
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]);
}