New issue
Advanced search Search tips

Issue 914153 link

Starred by 2 users

Issue metadata

Status: Unconfirmed
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 2
Type: Bug-Regression



Sign in to add a comment

Camera Access Fails

Reported by codefusi...@gmail.com, Dec 11

Issue description

Steps to reproduce the problem:
1. Create a WebView and grant it camera/audio permissions
2. Attempt to access the camera through WebRTC in javascript

What is the expected behavior?
The camera is accessed with no errors

What went wrong?
A error is thrown (E/cr_VideoCapture: CameraDevice.StateCallback onOpened) and no WebRTC connection can be established

Did this work before? Yes 70.0.3538.110

Does this work in other browsers? Yes

Chrome version: 71.0.3578.83  Channel: stable
OS Version: 9
Flash Version: 

This has broken some of the core functionality of our Android application and we have been unable to find any workarounds without abandoning the use of WebView.
 
WebRTCTest.7z
5.3 MB Download
Components: -Blink>WebRTC Blink>GetUserMedia>Webcam
Labels: Needs-triage-Mobile
Cc: chelamcherla@chromium.org
Labels: Triaged-Mobile Needs-Feedback
@ codefusion1: Please provide sample file in form of .apk file or .html file along with video on reproducing the issue. This would help in further triaging.

Thanks!
After further investigation, this issue is mitigated by adding getSettings().setMediaPlaybackRequiresUserGesture(false) on the WebView. This behaviour is, however, still not consistent with the Chrome application.

The 7z file in the original post is a full Android Studio project, but I have included the apk in this comment.
app-debug.apk
1.5 MB Download
Project Member

Comment 5 by sheriffbot@chromium.org, Dec 19

Labels: -Needs-Feedback
Thank you for providing more feedback. Adding the requester to the cc list.

For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot

Sign in to add a comment