Bug 189328 - MediaTrackConstraints.frameRate doesn't support max, min, exact
Summary: MediaTrackConstraints.frameRate doesn't support max, min, exact
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: Safari 11
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2018-09-05 16:40 PDT by ajbeaven
Modified: 2018-09-05 16:51 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 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.