MediaStream

The MediaStream interface of the Media Capture and Streams API represents a stream of media content.

MDN Reference

Constructors

Link copied to clipboard
constructor(stream: MediaStream)
constructor(tracks: ReadonlyArray<MediaStreamTrack>)
constructor()

Properties

Link copied to clipboard

The active read-only property of the true if the stream is currently active; otherwise, it returns false.

Link copied to clipboard
val id: String

The id read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.

Functions

Link copied to clipboard

The addTrack() method of the MediaStream interface adds a new track to the stream.

Link copied to clipboard

The clone() method of the MediaStream interface creates a duplicate of the MediaStream.

Link copied to clipboard
Link copied to clipboard

The getAudioTracks() method of the stream's track set where MediaStreamTrack.kind is audio.

Link copied to clipboard

The getTrackById() method of the MediaStream interface returns a MediaStreamTrack object representing the track with the specified ID string.

Link copied to clipboard

The getTracks() method of the stream's track set, regardless of MediaStreamTrack.kind.

Link copied to clipboard

The getVideoTracks() method of the ``js-nolint getVideoTracks() `` None.

Link copied to clipboard

The removeTrack() method of the MediaStream interface removes a ``js-nolint removeTrack(track) `` - track - : A MediaStreamTrack that will be removed from the stream.

Link copied to clipboard