-
Notifications
You must be signed in to change notification settings - Fork 106
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allowing subscription settings to update before fully subscribed #200
base: main
Are you sure you want to change the base?
Allowing subscription settings to update before fully subscribed #200
Conversation
log("Adaptive stream is enabled, cannot change video track settings", .warning) | ||
return false | ||
} | ||
if !(preferSubscribed || subscribed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this is no longer true. they should be able to change settings anytime
var userCanModifyTrackSettings: Bool { | ||
// adaptiveStream must be disabled and must be subscribed | ||
!isAdaptiveStreamEnabled && subscribed | ||
if kind == .video && isAdaptiveStreamEnabled { | ||
log("Adaptive stream is enabled, cannot change video track settings", .warning) | ||
return false | ||
} | ||
if !(preferSubscribed || subscribed) { | ||
log("Cannot update track settings when not subscribed", .warning) | ||
return false | ||
} | ||
return true | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidzhao Do you mean this whole check is not required anymore ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just mean the subscribed
check. isAdaptiveStreamEnabled
is still needed. though re-reading the code, you now have preferSubscribed
which actually covers it. sorry about the false alarm.
livekit/client-sdk-js#471
also allow to set videoQuality.