Issue metadata
Sign in to add a comment
|
fillLightMode does not work in PhotoSettings |
||||||||||||||||||||||||
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
,
Aug 31 2017
Can you provide device details?
,
Aug 31 2017
It's a Pixel XL
,
Sep 5 2017
|
|||||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||||
Comment 1 by guidou@chromium.org
, Aug 31 2017