8000 New video constraints syntax by davidliu · Pull Request #790 · flutter-webrtc/flutter-webrtc · GitHub
[go: up one dir, main page]

Skip to content

New video constraints syntax #790

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

Merged
merged 7 commits into from
Dec 4, 2021

Conversation

davidliu
Copy link
Contributor
@davidliu davidliu commented Dec 2, 2021

Updating getUserMedia to use latest video constraint syntax (https://developer.mozilla.org/en-US/docs/Web/API/MediaTrackConstraints).

Current getUserMedia constraints have been deprecated for years (and documentation is very sparse), so we should start looking to support the latest syntax.

@davidliu
Copy link
Contributor Author
davidliu commented Dec 2, 2021

The PR currently only contains Android changes at the moment, but will update with changes for the other platforms; mainly requesting for comments rather than approval until then.

The PR only handles the ideal property, and won't support min/max right now (as that requires quite a bit more work).

@davidliu
Copy link
Contributor Author
davidliu commented Dec 2, 2021

This should now cover all the currently supported platforms (web already handles the latest syntax).

@davidzhao
Copy link
Member

@cloudwebrtc @hiroshihorie please take a look at this PR. It resolves inconsistencies in media constraint specification. the PR is backwards compatible

@hiroshihorie
Copy link
Member

Nice update!

@cloudwebrtc
Copy link
Member

LGTM

@cloudwebrtc cloudwebrtc merged commit 79ec0aa into flutter-webrtc:master Dec 4, 2021
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.

4 participants
0