minor internal change

This commit is contained in:
Hiroshi Horie
2022-01-08 17:02:06 +07:00
parent a35ba65793
commit cc7db0ba73
+11 -11
View File
@@ -195,24 +195,24 @@ class RemoteTrackPublication<T extends RemoteTrack>
return didUpdate; return didUpdate;
} }
set videoQuality(lk_models.VideoQuality val) { set videoQuality(lk_models.VideoQuality newValue) {
if (val == _videoQuality) return; if (newValue == _videoQuality) return;
_videoQuality = val; _videoQuality = newValue;
_sendUpdateTrackSettings(); _sendUpdateTrackSettings();
} }
bool get enabled => _enabled; bool get enabled => _enabled;
set enabled(bool val) { set enabled(bool newValue) {
if (_enabled == val) return; if (_enabled == newValue) return;
_enabled = val; _enabled = newValue;
_sendUpdateTrackSettings(); _sendUpdateTrackSettings();
} }
set subscribed(bool val) { set subscribed(bool newValue) {
logger.fine('setting subscribed = ${val}'); logger.fine('setting subscribed = ${newValue}');
if (val == super.subscribed) return; if (newValue == super.subscribed) return;
_sendUpdateSubscription(subscribed: val); _sendUpdateSubscription(subscribed: newValue);
if (!val && track != null) { if (!newValue && track != null) {
// Ideally, we should wait for WebRTC's onRemoveTrack event // Ideally, we should wait for WebRTC's onRemoveTrack event
// but it does not work reliably across platforms. // but it does not work reliably across platforms.
// So for now we will assume remove track succeeded. // So for now we will assume remove track succeeded.