The MediaStream API

Explore the MediaStream API provided by the Web to access the inputs from various media hardware.

Introduction

The MediaStream API provides access to audio and video streams from webcams and microphones. It allows capturing, recording, and manipulating these streams in real time.

This API can be useful in the following ways:

  • Capturing pictures
  • Scanning QR codes
  • Video chatting
  • Real-time video effects
  • Audio-video recording

Capturing media streams

We capture a media stream by calling the ...