toggle menu
kilua-project
0.0.15
common
switch theme
search in API
kilua-dom
/
web.dom.mediacapture
/
MediaStream
Media
Stream
open
class
MediaStream
:
EventTarget
,
MediaProvider
,
JsAny
Exposes the JavaScript
MediaStream
to Kotlin
Members
Constructors
Media
Stream
Link copied to clipboard
constructor
(
stream
:
MediaStream
)
constructor
(
tracks
:
JsArray
<
MediaStreamTrack
>
)
constructor
(
)
Properties
active
Link copied to clipboard
open
val
active
:
Boolean
id
Link copied to clipboard
open
val
id
:
String
onaddtrack
Link copied to clipboard
var
onaddtrack
:
(
MediaStreamTrackEvent
)
->
Unit
?
onremovetrack
Link copied to clipboard
var
onremovetrack
:
(
MediaStreamTrackEvent
)
->
Unit
?
Functions
add
Event
Listener
Link copied to clipboard
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
AddEventListenerOptions
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
addEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
AddEventListenerOptions
)
add
Track
Link copied to clipboard
fun
addTrack
(
track
:
MediaStreamTrack
)
clone
Link copied to clipboard
fun
clone
(
)
:
MediaStream
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
get
Audio
Tracks
Link copied to clipboard
fun
getAudioTracks
(
)
:
JsArray
<
MediaStreamTrack
>
get
Track
By
Id
Link copied to clipboard
fun
getTrackById
(
trackId
:
String
)
:
MediaStreamTrack
?
get
Tracks
Link copied to clipboard
fun
getTracks
(
)
:
JsArray
<
MediaStreamTrack
>
get
Video
Tracks
Link copied to clipboard
fun
getVideoTracks
(
)
:
JsArray
<
MediaStreamTrack
>
remove
Event
Listener
Link copied to clipboard
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
(
Event
)
->
Unit
?
,
options
:
EventListenerOptions
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
Boolean
)
fun
removeEventListener
(
type
:
String
,
callback
:
EventListener
?
,
options
:
EventListenerOptions
)
remove
Track
Link copied to clipboard
fun
removeTrack
(
track
:
MediaStreamTrack
)