2020 API AWARDS WINNER - BEST IN MEDIA APIs LEARN MORE

MediaStream

The MediaStream model represents the WebRTC media stream. It includes the media stream ID, type, and also audio and video tracks present in the stream.

Accessors

id

streamId: String

The media stream identifier.

Returns: String


type

type: MediaStreamType

The current stream type.

Returns: MediaStreamType


audioTracks

audioTracks: [AudioTrack]

The audio tracks in the stream.

Returns: [AudioTrack]


videoTracks

videoTracks: [VideoTrack]

The video tracks in the stream.

Returns: [VideoTrack]