diff options
author | Chocobozzz <me@florianbigard.com> | 2020-09-17 09:20:52 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-11-09 15:33:04 +0100 |
commit | c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e (patch) | |
tree | 79304b0152b0a38d33b26e65d4acdad0da4032a7 /shared/models/server | |
parent | 110d463fece85e87a26aca48a6048ae0017a27b3 (diff) | |
download | PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.gz PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.tar.zst PeerTube-c6c0fa6cd8fe8f752463d8982c3dbcd448739c4e.zip |
Live streaming implementation first step
Diffstat (limited to 'shared/models/server')
-rw-r--r-- | shared/models/server/custom-config.model.ts | 29 | ||||
-rw-r--r-- | shared/models/server/server-config.model.ts | 10 |
2 files changed, 30 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 @@ | |||
1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' | 1 | import { NSFWPolicyType } from '../videos/nsfw-policy.type' |
2 | import { BroadcastMessageLevel } from './broadcast-message-level.type' | 2 | import { BroadcastMessageLevel } from './broadcast-message-level.type' |
3 | 3 | ||
4 | export type ConfigResolutions = { | ||
5 | '240p': boolean | ||
6 | '360p': boolean | ||
7 | '480p': boolean | ||
8 | '720p': boolean | ||
9 | '1080p': boolean | ||
10 | '2160p': boolean | ||
11 | } | ||
12 | |||
4 | export interface CustomConfig { | 13 | export 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: { |
diff --git a/shared/models/server/server-config.model.ts b/shared/models/server/server-config.model.ts index a8e5dfbff..77694a627 100644 --- a/shared/models/server/server-config.model.ts +++ b/shared/models/server/server-config.model.ts | |||
@@ -98,6 +98,16 @@ export interface ServerConfig { | |||
98 | enabledResolutions: number[] | 98 | enabledResolutions: number[] |
99 | } | 99 | } |
100 | 100 | ||
101 | live: { | ||
102 | enabled: boolean | ||
103 | |||
104 | transcoding: { | ||
105 | enabled: boolean | ||
106 | |||
107 | enabledResolutions: number[] | ||
108 | } | ||
109 | } | ||
110 | |||
101 | import: { | 111 | import: { |
102 | videos: { | 112 | videos: { |
103 | http: { | 113 | http: { |