Skip to content

Commit d06cb56

Browse files
committed
deprecate setter for videoQuality
instead, async func is recommended since it can be awaited (for future implementations)
1 parent cd62daa commit d06cb56

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lib/src/publication/remote.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,12 @@ class RemoteTrackPublication<T extends RemoteTrack>
218218
return didUpdate;
219219
}
220220

221+
@Deprecated('use setVideoQuality() instead')
221222
set videoQuality(lk_models.VideoQuality newValue) {
223+
setVideoQuality(newValue);
224+
}
225+
226+
Future<void> setVideoQuality(lk_models.VideoQuality newValue) async {
222227
if (newValue == _videoQuality) return;
223228
_videoQuality = newValue;
224229
sendUpdateTrackSettings();

0 commit comments

Comments
 (0)