Skip to content

Video Analyzer doesn't work on http/default server settings #1621

@hamishwillee

Description

@hamishwillee
  • I understand that issues created here are only relevant to the samples in this repo - not browser or SDK bugs
  • I have provided steps to reproduce
  • I have provided browser name and version
  • I have provided a link to the sample here or a modified version thereof

Note: If the checkboxes above are not checked (which you do after the issue is posted), the issue will be closed.

Browser affected

Firefox 119.0a1, Chrome

Description

Video Analyzer (and probably others) apply transforms to local media (i.e. webcam).
The webcam can only be requested in a secure context on all recent browsers, while http-server is not configured to work with https by default.

What this means is that you can't easily test the samples locally without modification.

The desired result is that is it is easy to try out these examples and that they reflect the current standards.

Steps to reproduce

Run src/content/insertable-streams/video-analyzer/ locally following the readme instructions.

Expected results

YOu are prompted to use webcam, then frame rates etc are reported.

Actual results

You will not be prompted to get access to webcam. The example effectively stalls since HTTPS does not work, you don't get the webcam, frames aren't provided.

I reset to the latest chrome and the example to latest gh-pages head revision and got this result on pressing the "Call" button.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions