-
-
Notifications
You must be signed in to change notification settings - Fork 338
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 video constraints (width|height|aspectRatio|frameRate).(ideal|exact) and add (aspectRatio|frameRate).(ideal|exact) support #419
Conversation
…ameRate).(ideal|exact) and add video.(aspectRatio|frameRate).(ideal|exact) support
…t constraints handling
@menelike this should do it.
Feel free to fork this branch and tests. |
This will fail:
|
…nstrainRangeValues to support height without with and handle partially ideal+min+max
This will works now, but ideal is not really implemented. |
@menelike Can you try this last changes, this would help a lot. |
This comment was marked as off-topic.
This comment was marked as off-topic.
@menelike the spec say it, read it again.
https://www.w3.org/TR/mediacapture-streams/#media-track-constraints |
We dont support |
@menelike Please try the basic. (height|width|framerate|aspectRatio).(min|max|exact|ideal). I'm starting to losing patience. |
Every time you are in a issue you add stuff that complexify the feature request, add to the request. |
Chrome do not follow spec, they still have 2014 spec for getUserMedia DO NOT compare with chrome. We not going to implement based on Chrome specially since it's not even clear why they do what they do. |
Ideal is simple, if you have a min/max and it match multiple sizes, it should pick the one that is ideal if available, that this PR will not support yet. This PR will only support min/max or exact and if ideal will be equivalent to min=max=ideal for now. |
I pushing this to 6.0.1 if it was tested properly could have been released on 6.0.0 but like usual it get out of topics.... |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Closed in favor of #451 451 |
aspectRatio: 16/9,
that was failing before due NSNumber to Float32 issue (e.g 1.7777777777777777 to 1.777778)fail exact requirement
Testing
To test
task/fix-video-constraints
branch