toggle menu
Kotlin Wrappers API Reference
js
switch theme
search in API
kotlin-browser
/
web.media.session
/
MediaSession
Media
Session
sealed
external
class
MediaSession
(
source
)
MDN Reference
Members
Properties
metadata
Link copied to clipboard
var
metadata
:
MediaMetadata
?
MDN Reference
playback
State
Link copied to clipboard
var
playbackState
:
MediaSessionPlaybackState
MDN Reference
Functions
set
Action
Handler
Link copied to clipboard
fun
setActionHandler
(
action
:
MediaSessionAction
,
handler
:
MediaSessionActionHandler
?
)
MDN Reference
set
Position
State
Link copied to clipboard
fun
setPositionState
(
state
:
MediaPositionState
=
definedExternally
)
MDN Reference