Looped video on holo video component

This commit is contained in:
AdamBtech
2025-05-23 19:24:42 +02:00
parent f0eefdf340
commit 6f084ec96c

View File

@@ -612,6 +612,9 @@ export class HoloVideoContainerComponent implements OnInit, OnDestroy {
private async loadVideoFromSrc(src: string): Promise<void> {
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();
}