ReadonlyactiveThe active read-only property of the true if the stream is currently active; otherwise, it returns false.
ReadonlyidThe 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.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: 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.
Audio MediaStreamTrack of given index from MediaStream.getAudioTracks() list
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.
Video MediaStreamTrack of given index from MediaStream.getVideoTracks() list
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.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsThe removeTrack() method of the MediaStream interface removes a js-nolint removeTrack(track) - track - : A MediaStreamTrack that will be removed from the stream.
Stops the capture
Player output to MediaStream
Commonly used for integration with third parties (e.g WebRTC video call SDK)
⚠️ The functionality might not be working on iOS Safari
Track the corresponding issue on Webkit Bug Tracker for a resolution status