Skip to content

Commit

Permalink
Remove autoplay
Browse files Browse the repository at this point in the history
  • Loading branch information
beaufortfrancois committed Dec 4, 2018
1 parent 732e58c commit 676cae5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion explainer.md
Expand Up @@ -151,8 +151,9 @@ Even though the API only applies on `HTMLVideoElement` at the moment, there is o
canvas.getContext('2d').fillRect(0, 0, canvas.width, canvas.height);
const video = document.createElement('video');
video.autoplay = true;
video.muted = true;
video.srcObject = canvas.captureStream(60 /* fps */);
video.play();
pipButton.addEventListener('click', function() {
video.requestPictureInPicture();
Expand Down

0 comments on commit 676cae5

Please sign in to comment.