Web APIs

Media Capture and Streams API

Checking compatibility...

Access and control media input devices like cameras and microphones, enabling audio/video streaming and recording capabilities.

Basic Camera Access

Turn on the user's camera and display the video feed. This example shows how to request camera access and show the live video stream on your webpage.

=
=
=
=
=
=

Output

Click Run to see output...

Device Enumeration

Find all available cameras and microphones on a device. This example shows how to get a list of connected media devices, letting users choose which camera or microphone to use.

=
=
=
=
=
=

Output

Click Run to see output...

Media Constraints

Control camera quality settings like resolution and frame rate. This example demonstrates how to request specific video quality levels to balance performance and appearance.

=
=
=
=
=
=

Output

Click Run to see output...