Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MediaSession

interface MediaSession {
metadata: MediaMetadata | null;
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void;
setPositionState(state?: MediaPositionState): void;
}
var MediaSession: {
prototype: MediaSession;
new (): MediaSession;
}
;

§Properties

§
metadata: MediaMetadata | null
[src]

§Methods

§
setActionHandler(action: MediaSessionAction, handler: MediaSessionActionHandler | null): void
[src]
§
setPositionState(state?: MediaPositionState): void
[src]