diff --git a/lib/src/publication/remote.dart b/lib/src/publication/remote.dart index 05f0c061..f4a72061 100644 --- a/lib/src/publication/remote.dart +++ b/lib/src/publication/remote.dart @@ -195,24 +195,24 @@ class RemoteTrackPublication return didUpdate; } - set videoQuality(lk_models.VideoQuality val) { - if (val == _videoQuality) return; - _videoQuality = val; + set videoQuality(lk_models.VideoQuality newValue) { + if (newValue == _videoQuality) return; + _videoQuality = newValue; _sendUpdateTrackSettings(); } bool get enabled => _enabled; - set enabled(bool val) { - if (_enabled == val) return; - _enabled = val; + set enabled(bool newValue) { + if (_enabled == newValue) return; + _enabled = newValue; _sendUpdateTrackSettings(); } - set subscribed(bool val) { - logger.fine('setting subscribed = ${val}'); - if (val == super.subscribed) return; - _sendUpdateSubscription(subscribed: val); - if (!val && track != null) { + set subscribed(bool newValue) { + logger.fine('setting subscribed = ${newValue}'); + if (newValue == super.subscribed) return; + _sendUpdateSubscription(subscribed: newValue); + if (!newValue && track != null) { // Ideally, we should wait for WebRTC's onRemoveTrack event // but it does not work reliably across platforms. // So for now we will assume remove track succeeded.