diff --git a/index.bs b/index.bs index f520e2d..0aa28bc 100644 --- a/index.bs +++ b/index.bs @@ -767,6 +767,12 @@ enum MediaSessionAction { "voiceactivity" }; +enum MediaSessionEnterPictureInPictureReason { + "other", + "useraction", + "contentoccluded" +}; + callback MediaSessionActionHandler = undefined(MediaSessionActionDetails details); [Exposed=Window] @@ -1521,6 +1527,7 @@ dictionary MediaSessionActionDetails { double seekTime; boolean fastSeek; boolean isActivating; + MediaSessionEnterPictureInPictureReason enterPictureInPictureReason; }; @@ -1565,6 +1572,25 @@ of [=pausing all input sources=] and the media session action is {{MediaSessionAction/togglecamera}}, {{MediaSessionAction/togglemicrophone}} or {{MediaSessionAction/togglescreenshare}}. +When the media session action is {{MediaSessionAction/enterpictureinpicture}}, +the enterPictureInPictureReason +dictionary member MUST be provided and is the reason the UA has triggered this +action. + +{{enterPictureInPictureReason}} can have one of the following values: + +

Permissions Policy Integration

This specification defines a [=policy-controlled feature=] identified by the