Bug 123573 - [MediaStream] update MediaStreamConstraints
Summary: [MediaStream] update MediaStreamConstraints
Status: RESOLVED CONFIGURATION CHANGED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-31 08:27 PDT by Eric Carlson
Modified: 2016-10-30 13:25 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Carlson 2013-10-31 08:27:51 PDT
MediaStreamConstraints[Impl] assumes that mandatory constraints will be an object with key/values pairs, where the values are strings or numbers. They assume that optional constrains will be an array of the same. The MediaStream spec actually allows these values a key/value pair, for example to list specify a minimum or maximum. 

An example from the spec:

{
    mandatory: {
        width: { min: 640 },
        height: { min: 480 }
    },

    optional: [
        { width: 650 },
        { width: { min: 650 }},
        { frameRate: 60 },
        { width: { max: 800 }},
        { facingMode: "user" }
    ]
}

http://dev.w3.org/2011/webrtc/editor/getusermedia.html#dictionary-mediatrackconstraints-members
Comment 1 Eric Carlson 2016-10-30 13:25:17 PDT
This was fixed by bug 161715 and bug 161469