this.importVideo(torrentfile)
}
+ setTorrentFile (files: FileList) {
+ this.torrentfileInput.nativeElement.files = files
+ this.fileChange()
+ }
+
importVideo (torrentfile?: Blob) {
this.isImportingVideo = true
privacy: this.firstStepPrivacyId,
waitTranscoding: false,
commentsEnabled: true,
+ downloadEnabled: true,
channelId: this.firstStepChannelId
}
this.video = new VideoEdit(Object.assign(res.video, {
commentsEnabled: videoUpdate.commentsEnabled,
+ downloadEnabled: videoUpdate.downloadEnabled,
support: null,
thumbnailUrl: null,
previewUrl: null
}))
- this.videoPrivacies = this.videoService.explainedPrivacyLabels(this.videoPrivacies)
-
this.hydrateFormFromVideo()
},