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

Improve track acquiring and handling in usePreviewTracks #830

Merged
merged 9 commits into from
Apr 18, 2024

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Apr 17, 2024

This PR tries to mitigate NotReadableErrors by making sure we only ever perform one createLocalTracks request at a time.
Users reported seeing errors on Windows when trying to acquire specific cameras, so this is an attempt to fix that.

depends on livekit/client-sdk-js#1110 being released

Copy link

changeset-bot bot commented Apr 17, 2024

🦋 Changeset detected

Latest commit: f0ebc4b

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

This PR includes changesets to release 6 packages
Name Type
@livekit/components-react Minor
@livekit/components-core Minor
@livekit/component-example-next Patch
@livekit/components-js-docs Patch
@livekit/component-docs-storybook Patch
@livekit/components-docs-gen 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 a review from Ocupe April 17, 2024 13:03
Copy link
Contributor

github-actions bot commented Apr 17, 2024

size-limit report 📦

Path Size
LiveKitRoom only 1.87 KB (0%)
LiveKitRoom with VideoConference 28.08 KB (0%)
All exports 33.21 KB (0%)

@lukasIO lukasIO requested a review from davidzhao April 17, 2024 13:04
@@ -71,3 +71,38 @@ export function useForwardedRef<T extends HTMLElement>(ref: React.ForwardedRef<T

return innerRef;
}

export class Mutex {
Copy link
Member

Choose a reason for hiding this comment

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

should we export & use the version from client-sdk-js?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lukasIO lukasIO merged commit ccd551f into main Apr 18, 2024
3 checks passed
@lukasIO lukasIO deleted the lukas/improve-preview-track-handling branch April 18, 2024 12:34
@github-actions github-actions bot mentioned this pull request Apr 18, 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.

2 participants