this.calendarDateFormat = this.i18nPrimengCalendarService.getDateFormat()
}
- get existingCaptions () {
- return this.videoCaptions
- .filter(c => c.action !== 'REMOVE')
- .map(c => c.language.id)
- }
-
- isWaitTranscodingDisplayed () {
- if (!this.waitTranscodingEnabled) return false
-
- if (this.liveVideo) {
- return this.form.value['saveReplay'] === true
- }
-
- return true
- }
-
updateForm () {
const defaultValues: any = {
nsfw: 'false',
if (this.schedulerInterval) clearInterval(this.schedulerInterval)
}
+ getExistingCaptions () {
+ return this.videoCaptions
+ .filter(c => c.action !== 'REMOVE')
+ .map(c => c.language.id)
+ }
+
onCaptionAdded (caption: VideoCaptionEdit) {
const existingCaption = this.videoCaptions.find(c => c.language.id === caption.language.id)