-
Notifications
You must be signed in to change notification settings - Fork 166
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
Remove OFF
option from VideoQuality enum
#985
Conversation
🦋 Changeset detectedLatest commit: 649907d The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
size-limit report 📦
|
OFF
option from VideoQuality enumOFF
option from VideoQuality enum
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.
LGTM! One comment about the mapping.
src/room/track/Track.ts
Outdated
switch (q) { | ||
case ProtoQuality.HIGH: | ||
case ProtoQuality.OFF: | ||
return VideoQuality.HIGH; |
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.
Would this cause trouble? Should the last video quality be cached and used when OFF? This is tricky.
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.
that's a good point. Currently this mapping function isn't even used anywhere in the code base. I added it because we have a similar helper to convert ConnectionQuality
to a string based enum.
We can also simply remove this for now.
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.
lgtm!
No description provided.