export class ConfigCommand extends AbstractCommand {
- static getCustomConfigResolutions (enabled: boolean) {
+ static getCustomConfigResolutions (enabled: boolean, with0p = false) {
return {
+ '0p': enabled && with0p,
'144p': enabled,
'240p': enabled,
'360p': enabled,
})
}
- enableTranscoding (webtorrent = true, hls = true) {
+ // TODO: convert args to object
+ enableTranscoding (webtorrent = true, hls = true, with0p = false) {
return this.updateExistingSubConfig({
newConfig: {
transcoding: {
allowAudioFiles: true,
allowAdditionalExtensions: true,
- resolutions: ConfigCommand.getCustomConfigResolutions(true),
+ resolutions: ConfigCommand.getCustomConfigResolutions(true, with0p),
webtorrent: {
enabled: webtorrent
})
}
+ // TODO: convert args to object
enableMinimumTranscoding (webtorrent = true, hls = true) {
return this.updateExistingSubConfig({
newConfig: {
})
}
+ enableRemoteTranscoding () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ transcoding: {
+ remoteRunners: {
+ enabled: true
+ }
+ },
+ live: {
+ transcoding: {
+ remoteRunners: {
+ enabled: true
+ }
+ }
+ }
+ }
+ })
+ }
+
+ enableRemoteStudio () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ videoStudio: {
+ remoteRunners: {
+ enabled: true
+ }
+ }
+ }
+ })
+ }
+
// ---------------------------------------------------------------------------
enableStudio () {
},
transcoding: {
enabled: true,
+ remoteRunners: {
+ enabled: false
+ },
allowAdditionalExtensions: true,
allowAudioFiles: true,
threads: 1,
maxUserLives: 50,
transcoding: {
enabled: true,
+ remoteRunners: {
+ enabled: false
+ },
threads: 4,
profile: 'default',
resolutions: {
}
},
videoStudio: {
- enabled: false
+ enabled: false,
+ remoteRunners: {
+ enabled: false
+ }
},
import: {
videos: {