Skip to content

Commit a344a61

Browse files
authored
Merge pull request #259 from micuat/patch-1
texture example: mute video for autoplay
2 parents 51fb4b3 + 5e92436 commit a344a61

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/data/examples/en/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+
}

src/data/examples/es/20_3D/04_textures.js

Lines changed: 1 addition & 0 deletions
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
}

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)