Skip to content

Commit

Permalink
Update random_video.js
Browse files Browse the repository at this point in the history
  • Loading branch information
lraithel15133 authored Feb 7, 2024
1 parent ffcf0d1 commit 5dc7f9b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions videos/random_video.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var videos = ["bedspin", "printing", "vasing_big", "vasing_small", "throw1", "throw2", "2023-05-04_00-09-20", "2023-06-08_23-30-36", "PXL_20230706_175035756", "PXL_20240118_141605700.TS1", "leddy"];
var videos = ["bedspin", "printing", "vasing_big", "vasing_small", "throw1", "throw2", "2023-05-04_00-09-20", "2023-06-08_23-30-36", "PXL_20230706_175035756", "PXL_20240118_141605700.TS1"];

window.addEventListener("DOMContentLoaded", function () {
var videoTag = document.getElementById("prexz");
Expand All @@ -21,12 +21,10 @@ window.addEventListener("DOMContentLoaded", function () {

var webmSource = createSource(`videos/${video}.webm`, 'video/webm');
var mp4Source = createSource(`videos/${video}.mp4`, 'video/mp4');
var gifSource = createSource(`videos/${video}.gif`, 'video/gif');


videoTag.appendChild(webmSource);
videoTag.appendChild(mp4Source);
videoTag.appendChild(gifSource);

videoTag.load(); // Important to reload the video tag to apply new sources
}
Expand Down

0 comments on commit 5dc7f9b

Please sign in to comment.