fix: stop audio track on mute. (#207)
* fix: stop audio track on mute. * chore: Let audioBitrate preset to music. * update. * update depends. * update.
This commit is contained in:
@@ -52,6 +52,20 @@ mixin LocalAudioManagementMixin on LocalTrack, AudioTrack {
|
||||
}
|
||||
return didUpdate;
|
||||
}
|
||||
|
||||
Future<void> onTrackStopped() async {
|
||||
await _trackCounterLock.synchronized(() async {
|
||||
_localTrackCount--;
|
||||
await _onAudioTrackCountDidChange();
|
||||
});
|
||||
}
|
||||
|
||||
Future<void> onTrackStarted() async {
|
||||
await _trackCounterLock.synchronized(() async {
|
||||
_localTrackCount++;
|
||||
await _onAudioTrackCountDidChange();
|
||||
});
|
||||
}
|
||||
}
|
||||
mixin RemoteAudioManagementMixin on RemoteTrack, AudioTrack {
|
||||
/// Start playing audio track. On web platform, create an audio element and
|
||||
|
||||
Reference in New Issue
Block a user