Bug 243075
Summary: | torch track constraint ignored on iOS | ||
---|---|---|---|
Product: | WebKit | Reporter: | Zach Rattner <zach> |
Component: | WebRTC | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED CONFIGURATION CHANGED | ||
Severity: | Normal | CC: | eric.carlson, john.diaz, shawnlee, webkit-bug-importer, youennf |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Nightly Build | ||
Hardware: | iPhone / iPad | ||
OS: | iOS 15 | ||
Bug Depends on: | 262131 | ||
Bug Blocks: |
Zach Rattner
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?
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/97743066>
Eric Carlson
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
Zach Rattner
Thanks Eric. Is any ETA available? Any other tickets I should follow?
Zach Rattner
This appears to have surporisingly started to work on iOS 17.5.1 (not sure if it also worked earlier). Is it officially supported now?
Zach Rattner
It looks like no one at Apple updated this ticket, but torch support was introduced to the codebase back in October: https://github.com/WebKit/WebKit/commit/9c0b105d80212675839a00325b58df55f408f1c0
Eric Carlson
(In reply to Zach Rattner from comment #5)
> It looks like no one at Apple updated this ticket, but torch support was
> introduced to the codebase back in October:
> https://github.com/WebKit/WebKit/commit/
> 9c0b105d80212675839a00325b58df55f408f1c0
My apologies, I forgot to update this when I added support for torch!