[Webkit-unassigned] [Bug 270779] New: Navigator.mediaDevices.getSupportedConstraints mistakenly reports torch as false.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 10 21:57:11 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=270779
Bug ID: 270779
Summary: Navigator.mediaDevices.getSupportedConstraints
mistakenly reports torch as false.
Product: WebKit
Version: Safari 17
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: WebRTC
Assignee: webkit-unassigned at lists.webkit.org
Reporter: shawnlee at infotoo.com
CC: youennf at gmail.com
demo : https://sy74yv.csb.app/
It will show the result of getSupportedConstraints.
{"aspectRatio":true
"deviceId":true
"displaySurface":true
"echoCancellation":true
"facingMode":true
"frameRate":true
"groupId":false
"height":true
"sampleRate":false
"sampleSize":false
"torch":false
"volume":true
"whiteBalanceMode":true
"width":true
"zoom":true}{"aspectRatio":true
"deviceId":true
"displaySurface":true
"echoCancellation":true
"facingMode":true
"frameRate":true
"groupId":false
"height":true
"sampleRate":false
"sampleSize":false
"torch":false
"volume":true
"whiteBalanceMode":true
"width":true
"zoom":true}
Tested on iphone 13 pro, 16.4
According to https://developer.mozilla.org/en-US/docs/Web/API/MediaDevices/getSupportedConstraints, only constraints supported by the user agent are included in the list, each of these Boolean properties has the value true.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240311/2ca7444c/attachment.htm>
More information about the webkit-unassigned
mailing list