Bug 189328

Summary: MediaTrackConstraints.frameRate doesn't support max, min, exact
Product: WebKit Reporter: ajbeaven
Component: WebRTCAssignee: Nobody <webkit-unassigned>
Status: NEW ---    
Severity: Normal CC: eric.carlson, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 11   
Hardware: Unspecified   
OS: Unspecified   

Description ajbeaven 2018-09-05 16:40:35 PDT
Running Safari 11.1.2

When navigator.mediaDevices.getUserMedia is called with `{ video: { frameRate: { max: 30} } }` constraint object, you receive an "Invalid constraint" error. 

The same issue occurs when using min, and exact, however it does work correctly when called with ideal.

Here is a jsFiddle showing it working correctly with ideal: https://jsfiddle.net/aynr0k5q/202/
Here is a jsFiddle showing it failing with min/max/exact: https://jsfiddle.net/aynr0k5q/203/

Both examples above work in Chrome.
Comment 1 Radar WebKit Bug Importer 2018-09-05 16:48:24 PDT
<rdar://problem/44159910>
Comment 2 ajbeaven 2018-09-05 16:51:11 PDT
Note, if you include ideal as well as max, it works correctly.