toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.codecs
/
VideoEncoder
Video
Encoder
open
external
class
VideoEncoder
(
init
:
VideoEncoderInit
)
:
EventTarget
(
source
)
Available only in secure contexts.
MDN Reference
Members
Constructors
Video
Encoder
Link copied to clipboard
constructor
(
init
:
VideoEncoderInit
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
dequeue
Event
Link copied to clipboard
val
dequeueEvent
:
EventInstance
<
Event
,
VideoEncoder
,
VideoEncoder
>
MDN Reference
encode
Queue
Size
Link copied to clipboard
val
encodeQueueSize
:
Int
MDN Reference
ondequeue
Link copied to clipboard
var
ondequeue
:
EventHandler
<
Event
,
VideoEncoder
,
VideoEncoder
>
?
MDN Reference
state
Link copied to clipboard
val
state
:
CodecState
MDN Reference
Functions
close
Link copied to clipboard
fun
close
(
)
MDN Reference
configure
Link copied to clipboard
fun
configure
(
config
:
VideoEncoderConfig
)
MDN Reference
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
encode
Link copied to clipboard
fun
encode
(
frame
:
VideoFrame
,
options
:
VideoEncoderEncodeOptions
=
definedExternally
)
MDN Reference
flush
Link copied to clipboard
suspend
fun
flush
(
)
MDN Reference
flush
Async
Link copied to clipboard
fun
flushAsync
(
)
:
Promise
<
Void
>
reset
Link copied to clipboard
fun
reset
(
)
MDN Reference