JavaScripture
Contribute via GitHub
Feedback
MediaStream
Constructors
Instance Properties
active
id
Instance Methods
addTrack
clone
getAudioTracks
getTrackById
getTracks
getVideoTracks
removeTrack
Instance Events
addtrack
removetrack
Media API
All API
No API set selected.
MediaStream
:
EventTarget
constructor
Spec
Constructors
new
MediaStream
() :
MediaStream
new
MediaStream
(
stream
:
MediaStream
) :
MediaStream
new
MediaStream
(
tracks
:
Array
<
MediaStreamTrack
>) :
MediaStream
Instance Properties
active
:
Boolean
readonly
id
:
String
readonly
Instance Methods
addTrack
(
track
:
MediaStreamTrack
) :
undefined
clone
() :
MediaStream
getAudioTracks
() :
Array
<
MediaStreamTrack
>
getTrackById
(
id
:
String
) :
MediaStreamTrack
getTracks
() :
Array
<
MediaStreamTrack
>
getVideoTracks
() :
Array
<
MediaStreamTrack
>
removeTrack
(
track
:
MediaStreamTrack
) :
undefined
Instance Events
onaddtrack
/
'addtrack'
event
listener
(
event
:
MediaStreamTrackEvent
) :
undefined
onremovetrack
/
'removetrack'
event
listener
(
event
:
MediaStreamTrackEvent
) :
undefined
home
license
contribute
feedback
toggle light/dark mode
Copyright © JavaScripture Contributors