GoogleChrome / samples

A repo containing samples tied to new functionality in each release of Google Chrome.
https://www.chromestatus.com/samples
Apache License 2.0
5.76k stars 2.38k forks source link

takePhoto() not working on Surface Pro 4 #568

Open Simsal opened 6 years ago

Simsal commented 6 years ago

Hi,

when trying the takePhoto method i get no output on your samples page: https://googlechrome.github.io/samples/image-capture/grab-frame-take-photo.html

If i click the Button 'Get User Media' the back camera starts up. 'Grab Frame' paints the image into the box. Upon clicking 'Take Photo' the camera stops and the imagebox stays black.

The 'Live Output' shows an empty object '{ }'

Chrome version: Version 64.0.3282.167 (Offizieller Build) (64-Bit)

If I try a local version with your example i get following error in the chrome console: DOMException: setOptions() failed

The Demo page works fine on my Desktop PC as well as on my Mac.

adhami03 commented 6 years ago

I am having the same issue on my Lenovo X1 Tablet and Lenovo T460s laptop. Both are running Chrome 66.0.3359.139 64-bit. I was able to use takePhoto() when I plugged in an external webcam. Is there a certain driver I need to have installed or is there a certain set of hardware that is/isn't supported?