Skip to content

Commit 5e92436

Browse files
authored
mute video for autoplay (zh-hans)
1 parent b6ec4b3 commit 5e92436

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/data/examples/zh-Hans/20_3D/04_textures.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ function setup(){
1212

1313
img = loadImage("assets/cat.jpg");
1414
vid = createVideo(["assets/360video_256crop_v2.mp4"]);
15+
vid.elt.muted = true;
1516
vid.loop();
1617
vid.hide();
1718
}
@@ -36,4 +37,4 @@ function draw(){
3637
box(100, 100, 100);
3738
pop();
3839
theta += 0.05;
39-
}
40+
}

0 commit comments

Comments
 (0)