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

Add degradationPreference option for LocalVideoTrack #1138

Merged
merged 4 commits into from
May 15, 2024

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented May 14, 2024

  • adds localVideoTrack.setDegradationPreference
  • adds degradationPreference to TrackPublishOptions
  • computes a default degradationPreference if none is set explicitly

Copy link

changeset-bot bot commented May 14, 2024

🦋 Changeset detected

Latest commit: 80a29f0

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 Patch

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

@lukasIO lukasIO requested review from davidzhao and cnderrauber and removed request for davidzhao May 14, 2024 13:02
Copy link
Contributor

github-actions bot commented May 14, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 79.92 KB (+0.17% 🔺)
dist/livekit-client.umd.js 85.6 KB (+0.18% 🔺)

@@ -857,6 +858,11 @@ export default class LocalParticipant extends Participant {

track.sender = await this.engine.createSender(track, opts, encodings);

if (track instanceof LocalVideoTrack && opts.degradationPreference) {
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to check opts.degradationPreference here? or just if (track instanceof LocalVIdeoTrack)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

thanks, this is a leftover, you're right, we should get rid of the second check

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 760af83 into main May 15, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/maintain-resolution branch May 15, 2024 12:50
@github-actions github-actions bot mentioned this pull request May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants