toggle menu
kilua-project
0.0.15
common
switch theme
search in API
kilua-dom
/
web.dom.mediasource
/
MediaSource
Media
Source
open
class
MediaSource
:
EventTarget
,
MediaProvider
,
JsAny
Exposes the JavaScript
MediaSource
to Kotlin
Members
Constructors
Media
Source
Link copied to clipboard
constructor
(
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
active
Source
Buffers
Link copied to clipboard
open
val
activeSourceBuffers
:
SourceBufferList
duration
Link copied to clipboard
var
duration
:
Double
onsourceclose
Link copied to clipboard
var
onsourceclose
:
(
Event
)
->
Unit
?
onsourceended
Link copied to clipboard
var
onsourceended
:
(
Event
)
->
Unit
?
onsourceopen
Link copied to clipboard
var
onsourceopen
:
(
Event
)
->
Unit
?
ready
State
Link copied to clipboard
open
val
readyState
:
ReadyState
source
Buffers
Link copied to clipboard
open
val
sourceBuffers
:
SourceBufferList
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
Source
Buffer
Link copied to clipboard
fun
addSourceBuffer
(
type
:
String
)
:
SourceBuffer
clear
Live
Seekable
Range
Link copied to clipboard
fun
clearLiveSeekableRange
(
)
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
end
Of
Stream
Link copied to clipboard
fun
endOfStream
(
error
:
EndOfStreamError
)
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
Source
Buffer
Link copied to clipboard
fun
removeSourceBuffer
(
sourceBuffer
:
SourceBuffer
)
set
Live
Seekable
Range
Link copied to clipboard
fun
setLiveSeekableRange
(
start
:
Double
,
end
:
Double
)