Skip to content

Conversation

lukasIO
Copy link
Contributor

@lukasIO lukasIO commented Apr 10, 2025

for createLocalTracks this PR changes our stream acquisition handling to default to exact matching if neither ideal nor exact have been explicitly specified by the user

  1. user passes in { deviceId: "my-device-id" }: Try with exact match if that throws -> try again with "ideal"
  2. { deviceId: { exact: "my-device-id" } }: Same behaviour as before, throws overconstrainederror if it cannot be fulfilled
  3. { deviceId: { ideal: "my-device-id" }}: Browser's ideal behaviour is respected

Copy link

changeset-bot bot commented Apr 10, 2025

🦋 Changeset detected

Latest commit: ac4607b

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 a review from davidzhao April 10, 2025 05:39
Copy link
Contributor

github-actions bot commented Apr 10, 2025

size-limit report 📦

Path Size
dist/livekit-client.esm.mjs 91.2 KB (+0.02% 🔺)
dist/livekit-client.umd.js 99.06 KB (+0.16% 🔺)

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 c941d62 into main Apr 10, 2025
6 checks passed
@lukasIO lukasIO deleted the lukas/handle-preview-exact branch April 10, 2025 10:26
@github-actions github-actions bot mentioned this pull request Apr 10, 2025
svajunas-budrys pushed a commit to svajunas-budrys/client-sdk-js that referenced this pull request Jun 17, 2025
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