aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-28 15:52:44 +0100
committerChocobozzz <me@florianbigard.com>2021-01-28 15:55:39 +0100
commit1896bca09e088b0da9d5e845407ecebae330618c (patch)
tree56041c445c0cd49aca536d0fd6b586730f4d341e /shared/models/server
parent529b37527cff5203a0689a15ce73dcee6e1eece2 (diff)
downloadPeerTube-1896bca09e088b0da9d5e845407ecebae330618c.tar.gz
PeerTube-1896bca09e088b0da9d5e845407ecebae330618c.tar.zst
PeerTube-1896bca09e088b0da9d5e845407ecebae330618c.zip
Support transcoding options/encoders by plugins
Diffstat (limited to 'shared/models/server')
-rw-r--r--shared/models/server/custom-config.model.ts4
-rw-r--r--shared/models/server/server-config.model.ts6
2 files changed, 10 insertions, 0 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index a57237414..d23b8abef 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -87,6 +87,9 @@ export interface CustomConfig {
87 allowAudioFiles: boolean 87 allowAudioFiles: boolean
88 88
89 threads: number 89 threads: number
90
91 profile: string
92
90 resolutions: ConfigResolutions & { '0p': boolean } 93 resolutions: ConfigResolutions & { '0p': boolean }
91 94
92 webtorrent: { 95 webtorrent: {
@@ -110,6 +113,7 @@ export interface CustomConfig {
110 transcoding: { 113 transcoding: {
111 enabled: boolean 114 enabled: boolean
112 threads: number 115 threads: number
116 profile: string
113 resolutions: ConfigResolutions 117 resolutions: ConfigResolutions
114 } 118 }
115 } 119 }
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts
index 47d0e623b..efde4ad9d 100644
--- a/shared/models/server/server-config.model.ts
+++ b/shared/models/server/server-config.model.ts
@@ -96,6 +96,9 @@ export interface ServerConfig {
96 } 96 }
97 97
98 enabledResolutions: number[] 98 enabledResolutions: number[]
99
100 profile: string
101 availableProfiles: string[]
99 } 102 }
100 103
101 live: { 104 live: {
@@ -110,6 +113,9 @@ export interface ServerConfig {
110 enabled: boolean 113 enabled: boolean
111 114
112 enabledResolutions: number[] 115 enabledResolutions: number[]
116
117 profile: string
118 availableProfiles: string[]
113 } 119 }
114 120
115 rtmp: { 121 rtmp: {