You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -1565,6 +1572,25 @@ of [=pausing all input sources=] and the <a>media session action</a>
1565
1572
is {{MediaSessionAction/togglecamera}}, {{MediaSessionAction/togglemicrophone}}
1566
1573
or {{MediaSessionAction/togglescreenshare}}.
1567
1574
1575
+
When the <a>media session action</a> is {{MediaSessionAction/enterpictureinpicture}},
1576
+
the <dfn dict-member for="MediaSessionActionDetails">enterPictureInPictureReason</dfn>
1577
+
<a>dictionary member</a> MUST be provided and is the reason the UA has triggered this
1578
+
action.
1579
+
1580
+
{{enterPictureInPictureReason}} can have one of the following values:
1581
+
<ul>
1582
+
<li>
1583
+
<dfn enum-value for="MediaSessionEnterPictureInPictureReason">other</dfn>: the reason for entering picture-in-picture is not one of the existing enum values
1584
+
</li>
1585
+
<li>
1586
+
<dfn enum-value for="MediaSessionEnterPictureInPictureReason">useraction</dfn>: the user has taken an explicit action to enter picture-in-picture (e.g. clicking a picture-in-picture button in the user agent UI)
1587
+
</li>
1588
+
<li>
1589
+
<dfn enum-value for="MediaSessionEnterPictureInPictureReason">contentoccluded</dfn>: the user agent is requesting picture-in-picture because the page has become occluded.
1590
+
This can happen in various cases like tab switching or tab minimization.
0 commit comments