Skip to content

Instantly share code, notes, and snippets.

@arne-cl
Created June 23, 2021 13:41
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 arne-cl/d777fafcdf650f73da364d9f879b296b to your computer and use it in GitHub Desktop.
Save arne-cl/d777fafcdf650f73da364d9f879b296b to your computer and use it in GitHub Desktop.
Show Zoom video as pop-out / picture-in-picture in Google Chrome.
let canvas = document.getElementsByClassName('sharee-container__canvas')[0];
let videoWrapper = document.createElement('video');
videoWrapper.muted = true;
videoWrapper.srcObject = canvas.captureStream(60);
videoWrapper.play();
videoWrapper.requestPictureInPicture();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment