From 6f084ec96cd63082a705d01e9a291cd19a06f12d Mon Sep 17 00:00:00 2001 From: AdamBtech <60339324+AdamBtech@users.noreply.github.com> Date: Fri, 23 May 2025 19:24:42 +0200 Subject: [PATCH] Looped video on holo video component --- .../ui/holo-video-container/holo-video-container.component.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/app/shared/ui/holo-video-container/holo-video-container.component.ts b/src/app/shared/ui/holo-video-container/holo-video-container.component.ts index c02b82c..f055993 100644 --- a/src/app/shared/ui/holo-video-container/holo-video-container.component.ts +++ b/src/app/shared/ui/holo-video-container/holo-video-container.component.ts @@ -612,6 +612,9 @@ export class HoloVideoContainerComponent implements OnInit, OnDestroy { private async loadVideoFromSrc(src: string): Promise { this.video.srcObject = null; this.video.src = src; + this.video.loop = true; // Ensure loop is set after changing source + this.video.muted = true; // Also ensure muted is maintained + this.video.autoplay = true; // Ensure autoplay is maintained this.video.load(); await this.video.play(); }