TextTrack

abstract external class TextTrack : 
    EventTarget,
    UnionAudioTrackOrTextTrackOrVideoTrack
(source)

Platform and version requirements: JS

Exposes the JavaScript TextTrack to Kotlin

Constructors

<init>

TextTrack()

Exposes the JavaScript TextTrack to Kotlin

Properties

activeCues

open val activeCues: TextTrackCueList?

cues

open val cues: TextTrackCueList?

id

open val id: String

inBandMetadataTrackDispatchType

open val inBandMetadataTrackDispatchType: String

kind

open val kind: TextTrackKind

label

open val label: String

language

open val language: String

mode

open var mode: TextTrackMode

oncuechange

open var oncuechange: (Event) -> dynamic

Functions

addCue

fun addCue(cue: TextTrackCue)

removeCue

fun removeCue(cue: TextTrackCue)

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)