WebRTC

View as Markdown

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

checkCameraPermissions

Check camera permission status

checkMicrophonePermissions

Check microphone permission status

checkPermissions

Check permission status for any resource

checkSpeakerPermissions

Check speaker permission status

createCameraDeviceWatcher

Watch for camera device changes

createDeviceWatcher

Watch for device changes

createMicrophoneAnalyzer

Track microphone input volume

createMicrophoneDeviceWatcher

Watch for microphone device changes

createSpeakerDeviceWatcher

Watch for speaker device changes

enumerateDevices

List available media devices

getCameraDevices

Get accessible camera devices

getDevices

Get available media devices

getDisplayMedia

Capture a screen or window

getMicrophoneDevices

Get accessible microphone devices

getSpeakerDevices

Get accessible speaker devices

getSupportedConstraints

Get browser-supported media constraints

getUserMedia

Request access to camera or microphone

requestPermissions

Prompt user for device permissions

setMediaElementSinkId

Set audio output device for an element

stopStream

Stop all tracks in a stream

stopTrack

Stop a single media track

supportsGetDisplayMedia

Check getDisplayMedia support

supportsGetUserMedia

Check getUserMedia support

supportsMediaDevices

Check media devices API support

supportsMediaOutput

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)