Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-browser
/
web.codecs
/
AudioEncoder
Audio
Encoder
open
class
AudioEncoder
(
init
:
AudioEncoderInit
)
:
EventTarget
(
source
)
Available only in secure contexts.
MDN Reference
Members
Constructors
Audio
Encoder
Link copied to clipboard
constructor
(
init
:
AudioEncoderInit
)
Types
Companion
Link copied to clipboard
object
Companion
Properties
dequeue
Event
Link copied to clipboard
val
dequeueEvent
:
EventInstance
<
Event
,
AudioEncoder
,
AudioEncoder
>
MDN Reference
encode
Queue
Size
Link copied to clipboard
val
encodeQueueSize
:
Int
MDN Reference
ondequeue
Link copied to clipboard
var
ondequeue
:
EventHandler
<
Event
,
AudioEncoder
,
AudioEncoder
>
?
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
:
AudioEncoderConfig
)
MDN Reference
dispatch
Event
Link copied to clipboard
fun
dispatchEvent
(
event
:
Event
)
:
Boolean
encode
Link copied to clipboard
fun
encode
(
data
:
AudioData
)
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
when
Link copied to clipboard
fun
<
T
:
Event
>
when
(
type
:
EventType
<
T
>
,
options
:
ObservableEventListenerOptions
?
)
:
Observable
<
T
>