Skip to content

Instantly share code, notes, and snippets.

@ahmedam55
Created November 26, 2018 16:53
Embed
What would you like to do?
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