export class VideoImportTorrentComponent extends VideoSend implements OnInit, CanComponentDeactivate {
@Output() firstStepDone = new EventEmitter<string>()
@Output() firstStepError = new EventEmitter<void>()
- @ViewChild('torrentfileInput', { static: false }) torrentfileInput: ElementRef<HTMLInputElement>
+ @ViewChild('torrentfileInput') torrentfileInput: ElementRef<HTMLInputElement>
magnetUri = ''
this.importVideo(torrentfile)
}
+ setTorrentFile (files: FileList) {
+ this.torrentfileInput.nativeElement.files = files
+ this.fileChange()
+ }
+
importVideo (torrentfile?: Blob) {
this.isImportingVideo = true