Skip to content
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

Merged
merged 7 commits into from
Jan 10, 2024
Merged

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Jan 3, 2024

No description provided.

Copy link

changeset-bot bot commented Jan 3, 2024

🦋 Changeset detected

Latest commit: 649907d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
livekit-client Major

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

Copy link
Contributor

github-actions bot commented Jan 3, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 80.64 KB (+0.21% 🔺)
dist/livekit-client.umd.js 86.25 KB (+0.15% 🔺)

@lukasIO lukasIO changed the title Remote OFF option from VideoQuality enum Remove OFF option from VideoQuality enum Jan 3, 2024
@lukasIO lukasIO added the v2 label Jan 3, 2024
@lukasIO lukasIO requested review from davidzhao and boks1971 January 3, 2024 15:31
Copy link
Contributor

@boks1971 boks1971 left a 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.

switch (q) {
case ProtoQuality.HIGH:
case ProtoQuality.OFF:
return VideoQuality.HIGH;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm!

@lukasIO lukasIO merged commit 831322d into main Jan 10, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/update-video-quality branch January 10, 2024 10:40
@github-actions github-actions bot mentioned this pull request Jan 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants