Kotlin Wrappers API Reference
Toggle table of contents
common
Platform filter
common
Switch theme
kotlin-browser
/
web.media.session
/
MediaSession
Media
Session
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
Camera
Active
Link copied to clipboard
suspend
fun
setCameraActive
(
active
:
Boolean
)
MDN Reference
set
Camera
Active
Async
Link copied to clipboard
fun
setCameraActiveAsync
(
active
:
Boolean
)
:
Promise
<
Void
>
set
Microphone
Active
Link copied to clipboard
suspend
fun
setMicrophoneActive
(
active
:
Boolean
)
MDN Reference
set
Microphone
Active
Async
Link copied to clipboard
fun
setMicrophoneActiveAsync
(
active
:
Boolean
)
:
Promise
<
Void
>
set
Position
State
Link copied to clipboard
fun
setPositionState
(
state
:
MediaPositionState
=
definedExternally
)
MDN Reference