1 import { Component, Input } from '@angular/core'
2 import { VideoDetails } from '@app/shared/shared-main'
5 selector: 'my-video-attributes',
6 templateUrl: './video-attributes.component.html',
7 styleUrls: [ './video-attributes.component.scss' ]
9 export class VideoAttributesComponent {
10 @Input() video: VideoDetails
13 if (!this.video.url) {
14 return this.video.originInstanceUrl + VideoDetails.buildWatchUrl(this.video)
21 if (!this.video || Array.isArray(this.video.tags) === false) return []
23 return this.video.tags