Skip to content

Commit

Permalink
test default video
Browse files Browse the repository at this point in the history
  • Loading branch information
collidingScopes authored Dec 12, 2024
1 parent c284217 commit 24f591f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

<canvas id="canvas"></canvas>

<video id="defaultVideo" class="hidden" width="480px" height="848px" loop muted playsinline>
<video id="defaultVideo" class="" width="480px" height="848px" loop muted playsinline>
<source src="assets/waves.mp4" type="video/mp4" />
</video>

Expand Down
4 changes: 2 additions & 2 deletions pixelShader.js
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,8 @@ function useDefaultVideo() {
cleanupVideoSource();

const video = document.querySelector('#defaultVideo');
video.setAttribute('playsinline', 'playsinline');
video.setAttribute('webkit-playsinline', 'webkit-playsinline');
// video.setAttribute('playsinline', 'playsinline');
// video.setAttribute('webkit-playsinline', 'webkit-playsinline');
video.setAttribute('crossorigin', 'anonymous');

// Create object URL for the uploaded file
Expand Down

0 comments on commit 24f591f

Please sign in to comment.