diff --git a/index.bs b/index.bs index 0aa28bc..03f0429 100644 --- a/index.bs +++ b/index.bs @@ -427,6 +427,10 @@ platform UI or media keys, thereby improving the user experience. the action's intent is to open the media session in a picture-in-picture window. +
  • + enterfullscreen: + the action's intent is to open the media session in fullscreen. +
  • voiceactivity: the action's intent is to notify the web page that voice activity has been @@ -764,6 +768,7 @@ enum MediaSessionAction { "previousslide", "nextslide", "enterpictureinpicture", + "enterfullscreen", "voiceactivity" }; @@ -1871,7 +1876,16 @@ media session. Handling picture-in-picture:
         navigator.mediaSession.setActionHandler("enterpictureinpicture", function() {
    -      remoteVideo.requestPictureInPicture();
    +      video.requestPictureInPicture();
    +    });
    +  
    + + +
    + Handling enter fullscreen: +
    +    navigator.mediaSession.setActionHandler("enterfullscreen", function() {
    +      video.requestFullscreen();
         });