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

applyConstraints() could be more useful #1017

Open
eladalon1983 opened this issue Oct 2, 2024 · 0 comments
Open

applyConstraints() could be more useful #1017

eladalon1983 opened this issue Oct 2, 2024 · 0 comments

Comments

@eladalon1983
Copy link
Member

applyConstraints() returns a promise.

  • If the track is "ended", the promise is resolved.
  • Otherwise, the promise is either...
    • ...rejected if there is a problem.
    • ...resolved if no problem is detected.

While this is somewhat useful, it might be more useful to specify that the promise is only resolved after the new set of constraints has taken effect, and all new frames emitted by the track are guaranteed to be subject to the new set of constraints.

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

No branches or pull requests

1 participant