Readonly
activeThe active
read-only property of the true
if the stream is currently active; otherwise, it returns false
.
Readonly
idThe id
read-only property of the MediaStream interface is a string containing 36 characters denoting a unique identifier (GUID) for the object.
The addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe addEventListener()
method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optional
options: boolean | AddEventListenerOptionsThe 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 dispatchEvent()
method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The getAudioTracks()
method of the 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 stream's track set, regardless of MediaStreamTrack.kind.
The getVideoTracks()
method of the js-nolint getVideoTracks()
None.
The removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeEventListener()
method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optional
options: boolean | EventListenerOptionsThe removeTrack()
method of the MediaStream interface removes a js-nolint removeTrack(track)
- track
- : A MediaStreamTrack that will be removed from the stream.
The
MediaStream
interface of the Media Capture and Streams API represents a stream of media content.MDN Reference