minor tweaks & cleanup

This commit is contained in:
David Zhao
2021-08-04 22:52:16 -07:00
parent 86fc303e61
commit 8cd7546d2f
4 changed files with 54 additions and 42 deletions
@@ -12,12 +12,14 @@ class RemoteTrackPublication extends TrackPublication {
VideoQuality get videoQuality => _videoQuality;
set videoQuality(VideoQuality val) {
if (val == _videoQuality) return;
_videoQuality = val;
_sendUpdateTrackSettings();
}
bool get enabled => !_disabled;
set enabled(bool val) {
if (_disabled == !val) return;
_disabled = !val;
_sendUpdateTrackSettings();
}
@@ -30,6 +32,7 @@ class RemoteTrackPublication extends TrackPublication {
}
set subscribed(bool val) {
if (_unsubscribed == !val) return;
_unsubscribed = !val;
_sendUpdateTrackSettings();
}