MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / enterPIP

Function enterPIP

scripts/pip_canvas.js:31–36  ·  view source on GitHub ↗
(stream, video)

Source from the content-addressed store, hash-verified

29 }
30
31 function enterPIP(stream, video) {
32 window.ufs_pip_fullWebsite.isPIP = true;
33 window.ufs_pip_fullWebsite.video = video;
34 window.ufs_pip_fullWebsite.stream = stream;
35 video.requestPictureInPicture();
36 }
37
38 function leavePIP() {
39 if (document.pictureInPictureElement) document.exitPictureInPicture();

Callers 1

pip_canvas.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected