Skip to content

Instantly share code, notes, and snippets.

@ahmedam55

ahmedam55/pip.js

Created Nov 26, 2018
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