WebRTC
The WebRTC namespace includes functions that give you access to the input and output media devices available on the user’s machine. For example, you can use these functions to request permission and get access to the media stream from a webcam, from a microphone, or from a screen sharing.
Functions
Check camera permission status
Check microphone permission status
Check permission status for any resource
Check speaker permission status
Watch for camera device changes
Watch for device changes
Track microphone input volume
Watch for microphone device changes
Watch for speaker device changes
List available media devices
Get accessible camera devices
Get available media devices
Capture a screen or window
Get accessible microphone devices
Get accessible speaker devices
Get browser-supported media constraints
Request access to camera or microphone
Prompt user for device permissions
Set audio output device for an element
Stop all tracks in a stream
Stop a single media track
Check getDisplayMedia support
Check getUserMedia support
Check media devices API support
Check media output selection support
getCameraDevicesWithPermissions
Get camera devices (deprecated)
getDevicesWithPermissions
Get devices with permissions prompt (deprecated)
getMicrophoneDevicesWithPermissions
Get microphone devices (deprecated)
getSpeakerDevicesWithPermissions
Get speaker devices (deprecated)