MediaSessionActionDetails.action

The action property is the only required property MediaSessionActionDetails dictionary, specifying the type of media session action which the action handler callback is being executed for.

Syntax

let mediaSessionActionDetails = { action: actionType };

let actionType = mediaSessionActionDetails.action;

Value

A DOMString specifying which of the action types the callback is being invoked for:

{{page("/en-US/docs/Web/API/MediaSessionActionDetails", "action-types")}}

Specifications

Specification
Media Session Standard (Media Session)
# dom-mediasessionactiondetails-action

Browser compatibility

BCD tables only load in the browser

See also