Skip to content

Commit

Permalink
play() is required in all browsers since GoogleChromeLabs#8 merged
Browse files Browse the repository at this point in the history
  • Loading branch information
FluorescentHallucinogen authored Nov 5, 2017
1 parent a2e16a1 commit 84206a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/imagecapture.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ if (typeof ImageCapture === 'undefined') {
this.videoElement.src = URL.createObjectURL(this._previewStream);
this.videoElement.muted = true;
this.videoElement.setAttribute('playsinline', ''); // Required by Safari on iOS 11. See https://webkit.org/blog/6784
this.videoElement.play(); // Required by Firefox and Safari
this.videoElement.play();

this.canvasElement = document.createElement('canvas');
// TODO Firefox has https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas
Expand Down

0 comments on commit 84206a7

Please sign in to comment.