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. +
navigator.mediaSession.setActionHandler("enterpictureinpicture", function() {
- remoteVideo.requestPictureInPicture();
+ video.requestPictureInPicture();
+ });
+
+
+
+
+ navigator.mediaSession.setActionHandler("enterfullscreen", function() {
+ video.requestFullscreen();
});