transcoding: {
enabled: false
},
- videoEditor: {
+ videoStudio: {
enabled: false
}
}
})
}
+ enableStudio () {
+ return this.updateExistingSubConfig({
+ newConfig: {
+ videoStudio: {
+ enabled: true
+ }
+ }
+ })
+ }
+
getConfig (options: OverrideCommandOptions = {}) {
const path = '/api/v1/config'
})
}
+ async getIndexHTMLConfig (options: OverrideCommandOptions = {}) {
+ const text = await this.getRequestText({
+ ...options,
+
+ path: '/',
+ implicitToken: false,
+ defaultExpectedStatus: HttpStatusCode.OK_200
+ })
+
+ const match = text.match('<script type="application/javascript">window.PeerTubeServerConfig = (".+?")</script>')
+
+ // We parse the string twice, first to extract the string and then to extract the JSON
+ return JSON.parse(JSON.parse(match[1])) as ServerConfig
+ }
+
getAbout (options: OverrideCommandOptions = {}) {
const path = '/api/v1/config/about'
live: {
enabled: true,
allowReplay: false,
+ latencySetting: {
+ enabled: false
+ },
maxDuration: -1,
maxInstanceLives: -1,
maxUserLives: 50,
}
}
},
- videoEditor: {
+ videoStudio: {
enabled: false
},
import: {