Interface MediaSession
interface MediaSession {
metadata: MediaMetadata;
playbackState: MediaSessionPlaybackState;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler): void;
setPositionState(state?: MediaPositionState): void;
}
metadata: MediaMetadata;
playbackState: MediaSessionPlaybackState;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler): void;
setPositionState(state?: MediaPositionState): void;
}
Index
Properties
Methods
Methods
setActionHandler
- set
Action (action, handler): voidHandler Parameters
- action: MediaSessionAction
- handler: MediaSessionActionHandler
Returns void
setPositionState
- set
Position (state?): voidState Parameters
Optional
state: MediaPositionState
Returns void
MDN Reference