+ // TODO: convert args to object
+ enableMinimumTranscoding (webtorrent = true, hls = true) {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ transcoding: {
+ enabled: true,
+ resolutions: {
+ ...ConfigCommand.getCustomConfigResolutions(false),
+
+ '240p': true
+ },
+
+ webtorrent: {
+ enabled: webtorrent
+ },
+ hls: {
+ enabled: hls
+ }
+ }
+ }
+ })
+ }
+
+ enableRemoteTranscoding () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ transcoding: {
+ remoteRunners: {
+ enabled: true
+ }
+ },
+ live: {
+ transcoding: {
+ remoteRunners: {
+ enabled: true
+ }
+ }
+ }
+ }
+ })
+ }
+
+ enableRemoteStudio () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ videoStudio: {
+ remoteRunners: {
+ enabled: true
+ }
+ }
+ }
+ })
+ }
+
+ // ---------------------------------------------------------------------------
+
+ enableStudio () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ videoStudio: {
+ enabled: true
+ }
+ }
+ })
+ }
+
+ // ---------------------------------------------------------------------------
+