diff options
author | Chocobozzz <me@florianbigard.com> | 2023-04-21 15:04:52 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2023-05-09 08:57:34 +0200 |
commit | 118626c8752bee7b05c4e0b668852e1aba2416f1 (patch) | |
tree | 6407bdcde3496c6a2480313f0958653aa15bab87 /client/src/app/+admin/config | |
parent | e592df48c73aa9262b04d23b3319de49b6caf95d (diff) | |
download | PeerTube-118626c8752bee7b05c4e0b668852e1aba2416f1.tar.gz PeerTube-118626c8752bee7b05c4e0b668852e1aba2416f1.tar.zst PeerTube-118626c8752bee7b05c4e0b668852e1aba2416f1.zip |
Implement runner in client side
Diffstat (limited to 'client/src/app/+admin/config')
3 files changed, 35 insertions, 1 deletions
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 0526ed8f1..335aedb67 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | |||
@@ -190,6 +190,9 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
190 | }, | 190 | }, |
191 | webtorrent: { | 191 | webtorrent: { |
192 | enabled: null | 192 | enabled: null |
193 | }, | ||
194 | remoteRunners: { | ||
195 | enabled: null | ||
193 | } | 196 | } |
194 | }, | 197 | }, |
195 | live: { | 198 | live: { |
@@ -208,7 +211,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
208 | threads: TRANSCODING_THREADS_VALIDATOR, | 211 | threads: TRANSCODING_THREADS_VALIDATOR, |
209 | profile: null, | 212 | profile: null, |
210 | resolutions: {}, | 213 | resolutions: {}, |
211 | alwaysTranscodeOriginalResolution: null | 214 | alwaysTranscodeOriginalResolution: null, |
215 | remoteRunners: { | ||
216 | enabled: null | ||
217 | } | ||
212 | } | 218 | } |
213 | }, | 219 | }, |
214 | videoStudio: { | 220 | videoStudio: { |
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html index c90c34c80..34ce8efa6 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html | |||
@@ -110,6 +110,20 @@ | |||
110 | </my-peertube-checkbox> | 110 | </my-peertube-checkbox> |
111 | </div> | 111 | </div> |
112 | 112 | ||
113 | <div class="form-group" formGroupName="remoteRunners" [ngClass]="getDisabledLiveTranscodingClass()"> | ||
114 | <my-peertube-checkbox | ||
115 | inputName="transcodingRemoteRunnersEnabled" formControlName="enabled" | ||
116 | i18n-labelText labelText="Enable remote runners" | ||
117 | > | ||
118 | <ng-container ngProjectAs="description"> | ||
119 | <span i18n> | ||
120 | Use <a routerLink="/admin/system/runners/runners-list">remote runners</a> to process live transcoding. | ||
121 | Remote runners has to register on your instance first. | ||
122 | </span> | ||
123 | </ng-container> | ||
124 | </my-peertube-checkbox> | ||
125 | </div> | ||
126 | |||
113 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> | 127 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> |
114 | <label i18n for="liveTranscodingThreads">Live resolutions to generate</label> | 128 | <label i18n for="liveTranscodingThreads">Live resolutions to generate</label> |
115 | 129 | ||
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html index de9e7253e..c11f560dd 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html | |||
@@ -37,6 +37,20 @@ | |||
37 | 37 | ||
38 | <ng-container ngProjectAs="extra"> | 38 | <ng-container ngProjectAs="extra"> |
39 | 39 | ||
40 | <div class="form-group" formGroupName="remoteRunners" [ngClass]="getTranscodingDisabledClass()"> | ||
41 | <my-peertube-checkbox | ||
42 | inputName="transcodingRemoteRunnersEnabled" formControlName="enabled" | ||
43 | i18n-labelText labelText="Enable remote runners" | ||
44 | > | ||
45 | <ng-container ngProjectAs="description"> | ||
46 | <span i18n> | ||
47 | Use <a routerLink="/admin/system/runners/runners-list">remote runners</a> to process VOD transcoding. | ||
48 | Remote runners has to register on your instance first. | ||
49 | </span> | ||
50 | </ng-container> | ||
51 | </my-peertube-checkbox> | ||
52 | </div> | ||
53 | |||
40 | <div class="callout callout-light pt-2 pb-0"> | 54 | <div class="callout callout-light pt-2 pb-0"> |
41 | <label i18n>Input formats</label> | 55 | <label i18n>Input formats</label> |
42 | 56 | ||