Skip to content

VideoDecoder is not defined error #72

@RoiArthurB

Description

@RoiArthurB

Describe the bug
To stream headsets, web clients need to use the built-inVideoDecoder API to know what codec is compatible (checked both on connect, and before creating a streaming canvas).

However, this API isn't available if accessed with HTTP (except for Safari 🤷 ), and requires HTTPS connection (except for localhost or computer's IP).

To Reproduce
Steps to reproduce the behavior:

  1. Start webplatform on a computer
  2. Open streaming view on another computer (using IP address) with Firefox/Chrome
  3. Open console
  4. See error

Expected behavior
Having video stream working.

Screenshots

Image

Desktop (please complete the following information):

  • OS: Linux
  • Browser Chrome & Firefox
  • Version latest

Additional context
Technically, it's possible (and not too hard) to have self-signed certificate (to use the webplatform in HTTPS) with an official Vite plugin. But it requires latest Vite 6 which is waiting #51 ...

Also, this update would need to be warned to every user (or have an automatic system to migrate people to from HTTP to HTTPS links)

Resources links :

Metadata

Metadata

Labels

🎨 FrontendIssues related to HTML, CSS, JavaScript.👀 scrcpyIssue related to casting android video🖱️ UXIssues related to user experience and design.🤗 EnhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions