Skip to content

Commit

Permalink
minor internal change
Browse files Browse the repository at this point in the history
  • Loading branch information
hiroshihorie committed Jan 8, 2022
1 parent a35ba65 commit cc7db0b
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions lib/src/publication/remote.dart
Original file line number Diff line number Diff line change
Expand Up @@ -195,24 +195,24 @@ class RemoteTrackPublication<T extends RemoteTrack>
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.
Expand Down

0 comments on commit cc7db0b

Please sign in to comment.