import { Component, ElementRef, Input, ViewChild } from '@angular/core'
import { VideoDetails } from '../../../shared/video/video-details.model'
import { buildVideoEmbed, buildVideoLink } from '../../../../assets/player/utils'
-import { NgbModal, NgbTabChangeEvent } from '@ng-bootstrap/ng-bootstrap'
+import { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { VideoCaption } from '@shared/models'
import { VideoPlaylist } from '@app/shared/video-playlist/video-playlist.model'
@Input() videoCaptions: VideoCaption[] = []
@Input() playlist: VideoPlaylist = null
- activeId: 'url' | 'qrcode' | 'embed'
+ activeId: 'url' | 'qrcode' | 'embed' = 'url'
customizations: Customizations
isAdvancedCustomizationCollapsed = true
includeVideoInPlaylist = false
return window.location.protocol === 'http:'
}
- onTabChange (event: NgbTabChangeEvent) {
- this.activeId = event.nextId as any
- }
-
isInEmbedTab () {
return this.activeId === 'embed'
}