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 stopProcessor param to replaceTrack function #1040

Merged
merged 5 commits into from
Feb 23, 2024

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Feb 21, 2024

No description provided.

Copy link

changeset-bot bot commented Feb 21, 2024

🦋 Changeset detected

Latest commit: 7faf4b9

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

Copy link
Contributor

github-actions bot commented Feb 21, 2024

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 81.38 KB (+0.05% 🔺)
dist/livekit-client.umd.js 87.06 KB (+0.04% 🔺)

@@ -221,7 +221,7 @@ export default abstract class LocalTrack<
return this;
}

async replaceTrack(track: MediaStreamTrack, userProvidedTrack = true) {
async replaceTrack(track: MediaStreamTrack, userProvidedTrack = true, stopProcessor = true) {
Copy link
Member

Choose a reason for hiding this comment

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

not sure if we want to do this now.. but might be cleaner to support a ReplaceOptions object instead of multiple args? I really wish JS supported keyword args.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right, that would be cleaner!

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.

awesome!

@lukasIO lukasIO merged commit 565e401 into main Feb 23, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/make-processor-stop-configurable branch February 23, 2024 16:30
@github-actions github-actions bot mentioned this pull request Feb 23, 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.

None yet

2 participants