File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -8134,9 +8134,12 @@ class FastSearchCard extends HTMLElement {
81348134 videoElement.src = newVideoUrl;
81358135 videoElement.load();
81368136 }
8137- // Loop-Attribut explizit entfernen
8138- videoElement.removeAttribute('loop');
8139- videoElement.loop = false;
8137+
8138+ // Event Listener für Video-Ende hinzufügen
8139+ videoElement.onended = function() {
8140+ this.currentTime = this.duration - 0.1; // Am letzten Frame stoppen
8141+ this.pause();
8142+ };
81408143 }
81418144 }
81428145
@@ -14775,7 +14778,7 @@ class FastSearchCard extends HTMLElement {
1477514778 if (!videoUrl) return '';
1477614779
1477714780 return `
14778- <video class="icon-video" autoplay muted playsinline onended="this.currentTime=this.duration" >
14781+ <video class="icon-video" autoplay muted playsinline>
1477914782 <source src="${videoUrl}" type="video/mp4">
1478014783 <source src="${videoUrl.replace('.mp4', '.webm')}" type="video/webm">
1478114784 </video>
You can’t perform that action at this time.
0 commit comments