Skip to content

Commit fe349b6

Browse files
authored
Update fast-search-card.js
1 parent ac77061 commit fe349b6

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

dist/fast-search-card.js

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)