All users were logged out of Bugzilla on October 13th, 2018

Android support for UVC/v4l2 devices with getUserMedia and the MediaDevices API

NEW
Unassigned

Status

()

P3
normal
2 years ago
2 years ago

People

(Reporter: brad, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

2 years ago
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce:

Use any `getUserMedia()` and/or MediaDevices API test, such as https://webrtc.github.io/samples/src/content/devices/input-output/, on Android.  I've tried two Galaxy S4 devices with different versions of Android, and a Galaxy S6.  Have a standard UVC USB video device attached (such as the Logitech C920 webcam).


Actual results:

Front/back cameras on the device are available to the web page, but the UVC device is not.


Expected results:

It would be a very nice feature to have UVC devices available to web pages.
Gian is this expected behavior?
Flags: needinfo?(gpascutto)
This is expected behavior in the sense that the WebRTC code only supports devices available via the Android Cameras API. I don't even see any guarantee that V4L/UVC can be depended on being available in any Android version or is in any way an official API. If Android supports V4L/UVC Cameras officially at some point I would expect it to expose them via the Cameras API as well, at which point they'll work in Firefox for Android.

We might take patches for this but I doubt we'll do any effort whatsoever in supporting it.
Flags: needinfo?(gpascutto)
Summary: Support for UVC/v4l2 devices with getUserMedia and the MediaDevices API → Android support for UVC/v4l2 devices with getUserMedia and the MediaDevices API
Status: UNCONFIRMED → NEW
Ever confirmed: true
mchiang,
I would think this is a "nice-to-have" feature. Does Android/Chrome support this? What do you think?
Flags: needinfo?(mchiang)
Priority: -- → P3
(Reporter)

Comment 4

2 years ago
Not to speak for mchiang, but I do agree that this would be a nice-to-have feature.  It's not critical, but would bring Firefox Android to feature parity with Firefox Desktop in this area.

Chrome on Android does not support this functionality to date.  I intend to submit a similar feature request there if I can figure out where to do it.  I came to Firefox first as Firefox has always typically been ahead of Chrome on media functionality.
Just wondering how many android devices kernel have fully support V4L/UVC.
Since V4L/UVC is not mandatory for Android, it is depending on each OEM's implementation.
For security reason, v4l2 driver access may be limited to mediaserver process.
That would be a problem too.
Flags: needinfo?(mchiang)
You need to log in before you can comment on or make changes to this bug.