+ enableImports () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ import: {
+ videos: {
+ http: {
+ enabled: true
+ },
+
+ torrent: {
+ enabled: true
+ }
+ }
+ }
+ }
+ })
+ }
+
+ enableLive (options: {
+ allowReplay?: boolean
+ transcoding?: boolean
+ } = {}) {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ live: {
+ enabled: true,
+ allowReplay: options.allowReplay ?? true,
+ transcoding: {
+ enabled: options.transcoding ?? true,
+ resolutions: ConfigCommand.getCustomConfigResolutions(true)
+ }
+ }
+ }
+ })
+ }
+
+ disableTranscoding () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ transcoding: {
+ enabled: false
+ }
+ }
+ })
+ }
+
+ enableTranscoding (webtorrent = true, hls = true) {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ transcoding: {
+ enabled: true,
+ resolutions: ConfigCommand.getCustomConfigResolutions(true),
+
+ webtorrent: {
+ enabled: webtorrent
+ },
+ hls: {
+ enabled: hls
+ }
+ }
+ }
+ })
+ }
+