Skip to content

<camera> and <microphone> #4199

Description

@tungnh28

Specification

https://w3c.github.io/mediacapture-extensions/#the-camera-html-element
https://w3c.github.io/mediacapture-extensions/#the-microphone-html-element

Description

The <camera> and <microphone> HTML elements works the same as the <usermedia> element but requesting single camera or microphone access directly within a user's workflow. This new elements move beyond traditional permission management by facilitating seamless, direct interaction with media streams, thereby simplifying technical implementation for developers by reducing or eliminating the need for independent JavaScript API calls.

Browser support
Chromium: in progress (Origin Trial, MVP planned)
WebKit / Mozilla: public signal mozilla/standards-positions#1245, WICG/PEPC#88 (comment).

Documentation

Explainer : https://github.com/w3c/mediacapture-extensions/blob/main/media-capture-elements-explainer.md
Chrome status: https://chromestatus.com/feature/4926233538330624

Browser support

Chromium: in progress (Origin Trial, MVP planned)
WebKit / Mozilla: public signal mozilla/standards-positions#1245, WICG/PEPC#88 (comment).

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature definitionCreating or defining new features or groups of features.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions