Skip to content

startCameraMaxResolution doesn't support a 640x480 webcam #84

@timbotimbo

Description

@timbotimbo

Description

On windows 10 I cannot get a 640x480 webcam to work using the max resolution option.
The readme describes a fallback to default when using max, but that doesn't seem to happen.
Using default resolution does work.

Tried in the latest Firefox, Chrome and Edge.

Reproduction

  1. Connect a low resolution webcam (640x480)

  2. Visit the example

  3. click startMaxResolution
    There is no permission for the webcam requested, the option shows only my secondary virtual webcam.
    (camera permission popup in Firefox, text in Dutch)
    permission0

  4. Refresh the page

  5. click startDefaultResolution
    This time the permission popup shows both options.
    permission1

  6. After selecting integrated camera, the webcam now works properly.

Debugplatform info for Firefox, chrome and Edge on Windows 10.
{
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:109.0) Gecko/20100101 Firefox/111.0",
  "platform": "Win32",
  "_getStringWithPlatform": "Win32",
  "_getHasTouchEvents": false,
  "getIsIOS": false
}

{
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36",
  "platform": "Win32",
  "_getStringWithPlatform": "Win32",
  "_getHasTouchEvents": false,
  "getIsIOS": false
}

{
  "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36 Edg/111.0.1661.44",
  "platform": "Win32",
  "_getStringWithPlatform": "Win32",
  "_getHasTouchEvents": false,
  "getIsIOS": false
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions