Skip to main content

Class: MediaStream

Constructors#

constructor#

new MediaStream(props)

Parameters#

NameType
propsPartial<MediaStream> & Pick<MediaStream, "id">

Defined in#

packages/webrtc/src/media/track.ts:59

Properties#

id#

id: string

Defined in#

packages/webrtc/src/media/track.ts:58


tracks#

tracks: MediaStreamTrack[] = []

Defined in#

packages/webrtc/src/media/track.ts:59

Methods#

addTrack#

addTrack(track): void

Parameters#

NameType
trackMediaStreamTrack

Returns#

void

Defined in#

packages/webrtc/src/media/track.ts:65


getTracks#

getTracks(): MediaStreamTrack[]

Returns#

MediaStreamTrack[]

Defined in#

packages/webrtc/src/media/track.ts:69