New issue
Advanced search Search tips

Issue 760542 link

Starred by 1 user

Issue metadata

Status: Duplicate
Merged: issue 720250
Owner: ----
Closed: Sep 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

fillLightMode does not work in PhotoSettings

Project Member Reported by mscales@chromium.org, Aug 30 2017

Issue description

Chrome Version       : 60.0.3112.107
Chrome Version       : 62.0.3199.3
OS Version: Android 8.0.0

Setting the fillLightMode to be 'flash' does not work correctly in the takePhoto method.

On Chrome 60 on Android the takePhoto method works, but the flash does not fire.
On Chrome 62 on Android the flash sometimes fires, and sometimes does not, but the takePhoto promise never resolves or rejects.

Test case:
async function go() {
  const stream = await navigator.mediaDevices.getUserMedia({
    video: {
      facingMode: ['environment'],
    }
  });
  const video = document.createElement('video');
  video.srcObject = stream;
  video.play();
  document.body.appendChild(video);
  setTimeout(async () => {
    const track = stream.getVideoTracks()[0];
    const capture = new ImageCapture(track);
    const settings = {};
    settings.fillLightMode = 'flash';
    try {
      const result = await capture.takePhoto(settings);
      alert(result);
    } catch(err) {
      alert(`Error: ${err}`);
    }
  }, 500);
}

go();


What happens instead of that?


Please provide any additional information below. Attach a screenshot if
possible.

UserAgentString: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.101 Safari/537.36



 

Comment 1 by guidou@chromium.org, Aug 31 2017

Components: -Blink>MediaStream Blink>ImageCapture
Labels: Needs-triage-Mobile Needs-Bisect
Can you provide device details?
It's a Pixel XL
Mergedinto: 720250
Status: Duplicate (was: Unconfirmed)

Sign in to add a comment