}
private checkTranscodingFields () {
+ const transcodingControl = this.form.get('transcoding.enabled')
+ const videoEditorControl = this.form.get('videoEditor.enabled')
const hlsControl = this.form.get('transcoding.hls.enabled')
const webtorrentControl = this.form.get('transcoding.webtorrent.enabled')
webtorrentControl.enable()
}
})
+
+ transcodingControl.valueChanges
+ .subscribe(newValue => {
+ if (newValue === false) {
+ videoEditorControl.setValue(false)
+ }
+ })
}
}