DOMException: setOptions failed on takePhoto()
See original GitHub issueUsing your own Quick Start example in Chrome Version 64.0.3282.186 (Official Build) (64-bit), the error DOMException: setOptions failed
is thrown when takePhoto() is called:
function gotMedia(mediaStream) {
// Extract video track.
videoDevice = mediaStream.getVideoTracks()[0];
// Check if this device supports a picture mode...
let captureDevice = new ImageCapture(videoDevice);
if (captureDevice) {
captureDevice.takePhoto().then(processPhoto).catch(stopCamera);
captureDevice.grabFrame().then(processFrame).catch(stopCamera);
}
}
Issue Analytics
- State:
- Created 6 years ago
- Reactions:17
- Comments:27 (1 by maintainers)
Top Results From Across the Web
[Resolved]. Had the same DOMException: setOptions…
DOMException : setOptions failed on takePhoto() · Issue #15 ... With work-around found from above discussion, using grabFrame() instead and ...
Read more >DOMException: setOptions failed on takePhoto() : r/ionic - Reddit
Hi guys, I am struggling with the issue in the Title, using Ionic 5, Angular 8, Capacitor 2.0 and testing in Chrome Version...
Read more >TakePhoto fails when using --use-file-for-fake-video-capture
The photo is not took. ImageCapture.takePhoto() fails with: "takePhoto() error: DOMException: setOptions failed. Did this work before? N/A
Read more >ImageCapture API throwing Platform Error on takePhoto()
I'm attempting to use the ImageCapture API to capture a snapshot using a 4k Logitech Brio Stream webcam. All works well on my...
Read more >third_party/WebKit/Source/modules/imagecapture ... - Google Git
Spec instructs to return an exception if the Track's readyState() is not ... resolver->reject(DOMException::create(UnknownError, "setOptions failed"));.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi everyone. While I’m the original creator of this library, I haven’t been with Google for 3 years.
Could anyone from @GoogleChromeLabs take a look? @PaulKinlan / @paulirish ?
Any update on the issue? Please don’t abandon us.