MediaStream
The MediaStream
interface of the Media Capture and Streams API represents a stream of media content.
Functions
The addTrack()
method of the MediaStream interface adds a new track to the stream.
The clone()
method of the MediaStream interface creates a duplicate of the MediaStream
.
The getAudioTracks()
method of the MediaStream interface returns a sequence that represents all the MediaStreamTrack objects in this stream's track set where MediaStreamTrack.kind is audio
.
The getTrackById()
method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string.
The getTracks()
method of the MediaStream interface returns a sequence that represents all the MediaStreamTrack objects in this stream's track set, regardless of MediaStreamTrack.kind.
The getVideoTracks()
method of the MediaStream interface returns a sequence of MediaStreamTrack objects representing the video tracks in this stream.
The removeTrack()
method of the MediaStream interface removes a MediaStreamTrack from a stream.