Created
November 26, 2018 16:53
-
-
Save ahmedam55/d38fa0a9c1c7998c9862af4ade6b80b2 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
pipButtonElement.addEventListener('click', async function() { | |
pipButtonElement.disabled = true; | |
await videoElement.requestPictureInPicture(); | |
pipButtonElement.disabled = false; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment