Skip to content

MediaSession

[<Interface>]
type MediaSession =
    abstract member metadata: MediaMetadata option with get, set
    abstract member playbackState: MediaSessionPlaybackState with get, set
    abstract member setActionHandler (action: MediaSessionAction, handler: MediaSessionActionHandler option) : unit
    abstract member setCameraActive (active: bool) : Promise<unit>
    abstract member setMicrophoneActive (active: bool) : Promise<unit>
    abstract member setPositionState (?state: MediaPositionState) : unit
AssemblyGlutinum.Web
Inheritsobj \| null
Attributes[<AllowNullLiteral>] [<Interface>] [<Global>]

Properties

abstract member metadata: MediaMetadata option with get, set
abstract member playbackState: MediaSessionPlaybackState with get, set

Methods

abstract member setActionHandler (action: MediaSessionAction, handler: MediaSessionActionHandler option) : unit
abstract member setCameraActive (active: bool) : Promise<unit>
abstract member setMicrophoneActive (active: bool) : Promise<unit>
abstract member setPositionState (?state: MediaPositionState) : unit