MediaKeySession

JS
1.1
abstract class MediaKeySession : EventTarget
(source)

Exposes the JavaScript MediaKeySession to Kotlin

Constructors

JS
1.1

<init>

Exposes the JavaScript MediaKeySession to Kotlin

MediaKeySession()

Properties

JS
1.1

closed

open val closed: Promise<Unit>
JS
1.1

expiration

open val expiration: Double
JS
1.1

keyStatuses

open val keyStatuses: MediaKeyStatusMap
JS
1.1

onkeystatuseschange

open var onkeystatuseschange: ((Event) -> dynamic)?
JS
1.1

onmessage

open var onmessage: ((MessageEvent) -> dynamic)?
JS
1.1

sessionId

open val sessionId: String

Functions

JS
1.1

close

fun close(): Promise<Unit>
JS
1.1

generateRequest

fun generateRequest(
    initDataType: String,
    initData: dynamic
): Promise<Unit>
JS
1.1

load

fun load(sessionId: String): Promise<Boolean>
JS
1.1

remove

fun remove(): Promise<Unit>
JS
1.1

update

fun update(response: dynamic): Promise<Unit>