Star + // Disney + Picture in Picture
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Get videoSelector value using the element selector, then second button over the element, copy > copy selector | |
const videoSelector = '#hudson-player--1631733208198 > video'; | |
const videoEl = document.querySelector(videoSelector); | |
videoEl.disablePictureInPicture = false; | |
videoEl.requestPictureInPicture(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment