diff --git a/index.bs b/index.bs index c9c0fe5..50fe540 100644 --- a/index.bs +++ b/index.bs @@ -1487,77 +1487,53 @@ should always be positive. dictionary MediaSessionActionDetails { required MediaSessionAction action; -}; - -dictionary MediaSessionSeekActionDetails : MediaSessionActionDetails { double seekOffset; -}; - -dictionary MediaSessionSeekToActionDetails : MediaSessionActionDetails { - required double seekTime; + double seekTime; boolean fastSeek; -}; - -dictionary MediaSessionCaptureActionDetails : MediaSessionActionDetails { boolean isActivating; }; The {{MediaSessionActionHandler}} MUST be run with the details -parameter whose dictionary type is: - +parameter whose dictionary type is {{MediaSessionActionDetails}}. -The action -dictionary member is used to specify the media session action -that the {{MediaSessionActionHandler}} is associated with. +The action dictionary +member +is used to specify the media session action that the +{{MediaSessionActionHandler}} is associated with. -The seekOffset -dictionary member is the time in seconds to move the playback time by. If -present, it should always be positive. If it is not provided then the site -should choose a sensible time (e.g. a few seconds). +The seekOffset +dictionary member MAY be provided when the media session action +is {{MediaSessionAction/seekbackward}} or {{MediaSessionAction/seekforward}}. It +is the time in seconds to move the playback time by. If present, it should +always be positive. If it is not provided then the site should choose a sensible +time (e.g. a few seconds). -The seekTime -dictionary member is the time in seconds to move the playback time to. +When the media session action is {{MediaSessionAction/seekto}}: + The isActivating dictionary member will be false if the user agent is about to [=pausing all input sources|pause all input sources=] related to the capture [=media session action|action=] and true otherwise. This dictionary member MUST be present if the user agent implements a policy -of [=pausing all input sources=]. +of [=pausing all input sources=] and the media session action +is {{MediaSessionAction/togglecamera}}, {{MediaSessionAction/togglemicrophone}} +or {{MediaSessionAction/screenshare}}.

Permissions Policy Integration