question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

DOMException: setOptions failed on takePhoto()

See original GitHub issue

Using 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:open
  • Created 6 years ago
  • Reactions:17
  • Comments:27 (1 by maintainers)

github_iconTop GitHub Comments

5reactions
dandvcommented, Feb 20, 2022

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 ?

4reactions
justbcommented, Nov 22, 2021

Any update on the issue? Please don’t abandon us.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found