Open Bug 2009725 Opened 1 day ago Updated 1 day ago

getUserMedia throws exception after stopping different camera stream tracks

Categories

(Firefox for Android :: Media, defect)

Firefox 146
All
Android
defect

Tracking

()

UNCONFIRMED

People

(Reporter: jose.gonzalez, Unassigned)

Details

Attachments

(1 file)

Attached file index.html

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36

Steps to reproduce:

  1. Serve the attached index.html over HTTPS.
    • You can use http-server with self-signed certificates via openssl; then run http-server -S -C cert.pem -K key.pem.
  2. Open the page in Firefox for Android.
  3. Click the List Available Cameras button.
  4. Grant camera permissions and enable Remember decision for this site.
  5. Wait until the cameras are listed.
  6. Select two or more cameras from the list.
  7. Click the Open Selected Cameras button.

Notes:

  • This bug doesn't occur in every Firefox Android browser. Here are the devices I tried:
    • This bug happens in: Samsung Galaxy S7 with user agent Mozilla/5.0 (Android 10; Mobile; rv:146.0) Gecko/146.0 Firefox/146.0 and Samsung Galaxy S23 with user agent Mozilla/5.0 (Android 16; Mobile; rv:146.0) Gecko/146.0 Firefox/146.0.
    • This bug doesn't happen in: Pixel 10 Pro with user agent Mozilla/5.0 (Android 16; Mobile; rv:146.0) Gecko/146.0 Firefox/146.0.
  • After the bug occurs, the camera LED stays on, and Firefox won't recognize the camera. You need to close Firefox and reopen it on your phone to use your camera again.

Actual results:

The following exception is thrown by getUserMedia:

Error getting detailed camera data: DOMException: Starting videoinput failed

Expected results:

The cameras are correctly opened.

The Bugbug bot thinks this bug should belong to the 'Firefox for Android::Media' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.

Component: General → Media
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: