Bug 265305

Summary: getDisplayMedia frameRate always 30 regardless of constraints
Product: WebKit Reporter: ivan.zahrodskyi
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, jer.noble, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: Safari 17   
Hardware: Mac (Apple Silicon)   
OS: macOS 14   
Attachments:
Description Flags
sample to reproduce issue none

Description ivan.zahrodskyi 2023-11-24 05:21:30 PST
Created attachment 468748 [details]
sample to reproduce issue

When calling getDisplayMedia with some frameRate constrained it doesn't take any effect.

example:

navigator.mediaDevices.getDisplayMedia({ video: { frameRate: {max: 5}, width: 640, height: 360 } });

the frameRate is always 30.

see sample in attachment
Comment 1 Radar WebKit Bug Importer 2023-11-28 03:24:03 PST
<rdar://problem/118874132>
Comment 2 youenn fablet 2023-11-28 09:25:32 PST
Pull request: https://github.com/WebKit/WebKit/pull/21002
Comment 3 EWS 2023-11-28 12:17:16 PST
Committed 271233@main (fb659ad0308b): <https://commits.webkit.org/271233@main>

Reviewed commits have been landed. Closing PR #21002 and removing active labels.