diff --git a/projects/core/src/lib/components/templates/gallery-video.component.ts b/projects/core/src/lib/components/templates/gallery-video.component.ts index 6b2eebb8..017e3b26 100644 --- a/projects/core/src/lib/components/templates/gallery-video.component.ts +++ b/projects/core/src/lib/components/templates/gallery-video.component.ts @@ -5,15 +5,15 @@ import { Component, Input, OnInit, ViewChild, ElementRef, ChangeDetectionStrateg changeDetection: ChangeDetectionStrategy.OnPush, template: ` ` }) export class GalleryVideoComponent implements OnInit { - videoSources: string[]; + videoSources: {url: string, type?: string}[]; - @Input() src: string | string[]; + @Input() src: string | {url: string, type?: string}[]; @Input() poster: string; @Input('pause') set pauseVideo(shouldPause: boolean) { @@ -33,7 +33,7 @@ export class GalleryVideoComponent implements OnInit { // If video has multiple sources this.videoSources = [...this.src]; } else { - this.videoSources = [this.src]; + this.videoSources = [{ url: this.src }]; } } }