MediaStream
interface represents a stream of media content. A stream consists of several tracks such as video or audio tracks. Each track is specified as an instance of MediaStreamTrack
.You can obtain a MediaStream object either by using the constructor or by calling MediaDevices.getUserMedia()
.CanvasCaptureMediaStream
.A Boolean value that returns true
if the MediaStream
is active, or false
otherwise.
Promise<boolean>
A string
containing 36 characters denoting a universally unique identifier (UUID) for the object.
Promise<string>
Returns a clone of the MediaStream
object. The clone will, however, have a unique value for id
.
MediaStream
onaddtrack | onremovetrack |
addTrack() | getAudioTracks() |
getTrackById() | getTracks() |
getVideoTracks() | removeTrack() |
addEventListener() | dispatchEvent() |
removeEventListener() |