mirror of
https://github.com/adam-benyekkou/my_portfolio.git
synced 2026-01-15 20:20:09 +00:00
Looped video on holo video component
This commit is contained in:
@@ -612,6 +612,9 @@ export class HoloVideoContainerComponent implements OnInit, OnDestroy {
|
|||||||
private async loadVideoFromSrc(src: string): Promise<void> {
|
private async loadVideoFromSrc(src: string): Promise<void> {
|
||||||
this.video.srcObject = null;
|
this.video.srcObject = null;
|
||||||
this.video.src = src;
|
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();
|
this.video.load();
|
||||||
await this.video.play();
|
await this.video.play();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user