Skip to content

Commit

Permalink
fix(demo): fix video demo error in ios, video will show full screen (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
singlecoder authored Aug 20, 2024
1 parent f127a84 commit 22f80f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/video-background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ void main() {
dom.crossOrigin = "anonymous";
dom.loop = true;
dom.muted = true;
dom.playsInline = true;
dom.play();

// create video background
Expand Down
1 change: 1 addition & 0 deletions examples/video-transparent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ WebGLEngine.create({ canvas: "canvas" }).then((engine) => {
dom.crossOrigin = "anonymous";
dom.loop = true;
dom.muted = true;
dom.playsInline = true;
dom.play();

// create video texture
Expand Down

0 comments on commit 22f80f0

Please sign in to comment.