Skip to content

Commit aeec30b

Browse files
author
Steven Lybeck
committed
playsinline flag for arjs-webcam-texture videos
1 parent 90425aa commit aeec30b

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

aframe/build/aframe-ar-nft.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aframe/build/aframe-ar.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aframe/src/location-based/arjs-webcam-texture.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ AFRAME.registerComponent('arjs-webcam-texture', {
88
this.scene.renderer.autoClear = false;
99
this.video = document.createElement("video");
1010
this.video.setAttribute("autoplay", true);
11+
this.video.setAttribute("playsinline", true);
1112
this.video.setAttribute("display", "none");
1213
document.body.appendChild(this.video);
1314
this.geom = new THREE.PlaneBufferGeometry(); //0.5, 0.5);

0 commit comments

Comments
 (0)