Interface MediaStreamConfig

Hierarchy

  • MediaStreamConfig

Properties

audioConstraints?: AudioConstraints

Constraints to be applied to the audio track.

audioDeviceId?: string

Identifier for the audio device to create an AudioTrack from. It corresponds to the deviceId property of an audio device within the MediaDeviceInfo class. You can retrieve a list of attached devices (instances of MediaDeviceInfo) by invoking the enumerateDevices method on MediaDevices (accessible through navigator.mediaDevices?.enumerateDevices()).

audioVideoOnly?: TrackKind

Force either audio-only or video-only ingest.

maxFramerate?: number

Maximum framerate of the video in frames per second.

resolution?: [width: number, height: number]

Resolution of the video [width, height].

videoDeviceId?: string

Identifier for the video device to create a VideoTrack from. It corresponds to the deviceId property of a video device within the MediaDeviceInfo class. You can retrieve a list of attached devices (instances of MediaDeviceInfo) by invoking the enumerateDevices method on MediaDevices (accessible through navigator.mediaDevices?.enumerateDevices()).

Generated using TypeDoc