Bug 243075 - torch track constraint ignored on iOS
Summary: torch track constraint ignored on iOS
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebRTC (show other bugs)
Version: WebKit Nightly Build
Hardware: iPhone / iPad iOS 15
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2022-07-21 14:01 PDT by Zach Rattner
Modified: 2023-09-03 21:53 PDT (History)
5 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zach Rattner 2022-07-21 14:01:00 PDT
As per MDN, MediaStreamTrack.applyConstraints should be supported on iOS 11+ - https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints 

But a basic demo works on Android but not iOS: https://codepen.io/adamrifai/pen/YLxjKa

Is there any way to get `torch` to work on iOS? If not, any plans to?
Comment 1 Radar WebKit Bug Importer 2022-07-28 14:01:17 PDT
<rdar://problem/97743066>
Comment 2 Eric Carlson 2022-07-29 10:35:41 PDT
The `torch` constraint is part of the MediaStream Image Capture spec, which WebKit doesn't support yet - https://w3c.github.io/mediacapture-image/#dom-mediatracksupportedconstraints-torch
Comment 3 Zach Rattner 2022-08-01 02:40:16 PDT
Thanks Eric. Is any ETA available? Any other tickets I should follow?