.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',
support: VIDEO_SUPPORT_VALIDATOR,
schedulePublicationAt: VIDEO_SCHEDULE_PUBLICATION_AT_VALIDATOR,
originallyPublishedAt: VIDEO_ORIGINALLY_PUBLISHED_AT_VALIDATOR,
- liveStreamKey: null
+ liveStreamKey: null,
+ saveReplay: null
}
this.formValidatorService.updateForm(
this.videoCaptionAddModal.show()
}
+ isSaveReplayEnabled () {
+ return this.serverConfig.live.allowReplay
+ }
+
private sortVideoCaptions () {
this.videoCaptions.sort((v1, v2) => {
if (v1.language.label < v2.language.label) return -1