aboutsummaryrefslogtreecommitdiffhomepage
path: root/shared/models/server/custom-config.model.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2020-09-17 09:20:52 +0200
committerChocobozzz <chocobozzz@cpy.re>2020-11-09 15:33:04 +0100
commitc6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch)
tree79304b0152b0a38d33b26e65d4acdad0da4032a7 /shared/models/server/custom-config.model.ts
parent110d463fece85e87a26aca48a6048ae0017a27b3 (diff)
downloadPeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz
PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst
PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip
Live streaming implementation first step
Diffstat (limited to 'shared/models/server/custom-config.model.ts')
-rw-r--r--shared/models/server/custom-config.model.ts29
1 files changed, 20 insertions, 9 deletions
diff --git a/shared/models/server/custom-config.model.ts b/shared/models/server/custom-config.model.ts
index 338a59341..e609d1a33 100644
--- a/shared/models/server/custom-config.model.ts
+++ b/shared/models/server/custom-config.model.ts
@@ -1,6 +1,15 @@
1import { NSFWPolicyType } from '../videos/nsfw-policy.type' 1import { NSFWPolicyType } from '../videos/nsfw-policy.type'
2import { BroadcastMessageLevel } from './broadcast-message-level.type' 2import { BroadcastMessageLevel } from './broadcast-message-level.type'
3 3
4export type ConfigResolutions = {
5 '240p': boolean
6 '360p': boolean
7 '480p': boolean
8 '720p': boolean
9 '1080p': boolean
10 '2160p': boolean
11}
12
4export interface CustomConfig { 13export interface CustomConfig {
5 instance: { 14 instance: {
6 name: string 15 name: string
@@ -75,15 +84,7 @@ export interface CustomConfig {
75 allowAudioFiles: boolean 84 allowAudioFiles: boolean
76 85
77 threads: number 86 threads: number
78 resolutions: { 87 resolutions: ConfigResolutions & { '0p': boolean }
79 '0p': boolean
80 '240p': boolean
81 '360p': boolean
82 '480p': boolean
83 '720p': boolean
84 '1080p': boolean
85 '2160p': boolean
86 }
87 88
88 webtorrent: { 89 webtorrent: {
89 enabled: boolean 90 enabled: boolean
@@ -94,6 +95,16 @@ export interface CustomConfig {
94 } 95 }
95 } 96 }
96 97
98 live: {
99 enabled: boolean
100
101 transcoding: {
102 enabled: boolean
103 threads: number
104 resolutions: ConfigResolutions
105 }
106 }
107
97 import: { 108 import: {
98 videos: { 109 videos: {
99 http: { 110 http: {