AudioTrackList

abstract external class AudioTrackList : EventTarget (source)

Platform and version requirements: JS

Constructors

<init>

AudioTrackList()

Properties

length

open val length: Int

onaddtrack

open var onaddtrack: (Event) -> dynamic

onchange

open var onchange: (Event) -> dynamic

onremovetrack

open var onremovetrack: (Event) -> dynamic

Functions

getTrackById

fun getTrackById(id: String): AudioTrack?

Inherited Functions

addEventListener

fun addEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun addEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

dispatchEvent

fun dispatchEvent(event: Event): Boolean

removeEventListener

fun removeEventListener(
    type: String,
    callback: EventListener?,
    options: dynamic = definedExternally)
fun removeEventListener(
    type: String,
    callback: (Event) -> Unit,
    options: dynamic = definedExternally)

Extension Functions

get

operator fun AudioTrackList.get(index: Int): AudioTrack?