Skip to content

Instantly share code, notes, and snippets.

@ahmedam55
Created November 26, 2018 16:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ahmedam55/d38fa0a9c1c7998c9862af4ade6b80b2 to your computer and use it in GitHub Desktop.
Save ahmedam55/d38fa0a9c1c7998c9862af4ade6b80b2 to your computer and use it in GitHub Desktop.
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