Spaces:
Running
Running
Update assets/js/all_videos.js
Browse files- assets/js/all_videos.js +3 -5
assets/js/all_videos.js
CHANGED
|
@@ -62,16 +62,14 @@ function render(rows) {
|
|
| 62 |
</td>
|
| 63 |
<td>${start}-${end}</td>
|
| 64 |
<td class="video-cell">
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
<video preload="none" controls> // lazy loading
|
| 68 |
-
<source data-src="${video_url}" type="video/mp4" /> // lazy loading
|
| 69 |
</video>
|
| 70 |
</td>
|
| 71 |
`;
|
| 72 |
|
| 73 |
const videoEl = tr.querySelector("video");
|
| 74 |
-
setupLazyVideo(videoEl);
|
| 75 |
attachLabeledLoop(videoEl, {
|
| 76 |
label,
|
| 77 |
startFrame: start,
|
|
|
|
| 62 |
</td>
|
| 63 |
<td>${start}-${end}</td>
|
| 64 |
<td class="video-cell">
|
| 65 |
+
<video preload="none" controls>
|
| 66 |
+
<source data-src="${video_url}" type="video/mp4" />
|
|
|
|
|
|
|
| 67 |
</video>
|
| 68 |
</td>
|
| 69 |
`;
|
| 70 |
|
| 71 |
const videoEl = tr.querySelector("video");
|
| 72 |
+
setupLazyVideo(videoEl);
|
| 73 |
attachLabeledLoop(videoEl, {
|
| 74 |
label,
|
| 75 |
startFrame: start,
|