New issue
Advanced search Search tips

Issue 781996 link

Starred by 3 users

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Windows
Pri: 2
Type: Bug-Regression



Sign in to add a comment

ImageCapture setOptions() and takePhoto() fail on Surface Books (only?)

Reported by simon.bu...@gmail.com, Nov 6 2017

Issue description

UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36

Steps to reproduce the problem:
Using a Surface Book
1. https://googlechrome.github.io/samples/image-capture/grab-frame-take-photo.html
2. Grant webcam permission
3. Press buttons: Get User Media, Grab Frame, Take Photo

What is the expected behavior?
See webcam stream, frame grab and photo after each button clicked.

What went wrong?
On a Surface Book, Get User Media and Grab Frame work, but Take Photo causes the video stream to blank and a DOMException "setOptions failed" to be raised (unfortunately, this sample's ChromeSamples.log() method uses JSON.stringify() and simply shows this to screen as {} - use a break point on line 77 to verify)

Did this work before? Yes Electron latest (1.7.9) -> chromium 58

Does this work in other browsers? N/A

Chrome version: 62.0.3202.75  Channel: canary
OS Version: 10.0
Flash Version: 

Breaks with the same error in chromium beta (1.8.2) -> chromium 59, so that hopefully narrows it down enough.

This was originally reproduced with a test case extracted from my own code with as much paranoia as possible: https://s3-ap-southeast-2.amazonaws.com/skilitics-dfa-test/takePhoto.html - this simply console.logs, so check console: success simply logs the photo Blob.

Firefox doesn't have setOptions(), and takePhoto() simply returns undefined, so can't compare there, but since it works in electron stable but not beta it implies it's something introduced in chromium 59.

Tested with three different Surface Books in the office, and a non-surface book machine (a Dell XPS L502X) works fine.

Heads down on getting a prototype working for a client ATM, but might be able to build and debug Chromium if it would help later.
 
Labels: Needs-Triage-M62
Owner: chfremer@chromium.org
Status: Assigned (was: Unconfirmed)

Comment 3 by jok...@gmail.com, Nov 15 2017

"on Surface Books (only?)"

To answer the question "only?":
The error is ocurring on my Laptop with integrated cameras, a Lenovo Yoga Book, and on my PC with an external USB webcam, too. (both in Chrome 62/stable and Chrome 64/canary)
Works on my Android phone and on MacBooks I've tested it on, though.

Sign in to add a comment