diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-04 13:40:02 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2022-03-09 09:23:10 +0100 |
commit | f443a74649174b2f9347c158e30f8ac7aa3e958a (patch) | |
tree | e423bc4e2307477bda4341037b7fa04ad10adae6 /client/src/app/+admin | |
parent | 01dd04cd5ab7b55d2a9af7d0ebf405bee9579b09 (diff) | |
download | PeerTube-f443a74649174b2f9347c158e30f8ac7aa3e958a.tar.gz PeerTube-f443a74649174b2f9347c158e30f8ac7aa3e958a.tar.zst PeerTube-f443a74649174b2f9347c158e30f8ac7aa3e958a.zip |
Add latency setting support
Diffstat (limited to 'client/src/app/+admin')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts | 3 | ||||
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html | 12 |
2 files changed, 15 insertions, 0 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 e3b6f8305..94f1021bf 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 | |||
@@ -189,6 +189,9 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { | |||
189 | maxInstanceLives: MAX_INSTANCE_LIVES_VALIDATOR, | 189 | maxInstanceLives: MAX_INSTANCE_LIVES_VALIDATOR, |
190 | maxUserLives: MAX_USER_LIVES_VALIDATOR, | 190 | maxUserLives: MAX_USER_LIVES_VALIDATOR, |
191 | allowReplay: null, | 191 | allowReplay: null, |
192 | latencySetting: { | ||
193 | enabled: null | ||
194 | }, | ||
192 | 195 | ||
193 | transcoding: { | 196 | transcoding: { |
194 | enabled: null, | 197 | enabled: null, |
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 10d5278c1..8d6a4ce19 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 | |||
@@ -36,6 +36,18 @@ | |||
36 | </my-peertube-checkbox> | 36 | </my-peertube-checkbox> |
37 | </div> | 37 | </div> |
38 | 38 | ||
39 | <div class="form-group" formGroupName="latencySetting" [ngClass]="getDisabledLiveClass()"> | ||
40 | <my-peertube-checkbox | ||
41 | inputName="liveLatencySettingEnabled" formControlName="enabled" | ||
42 | i18n-labelText labelText="Allow your users to change live latency" | ||
43 | > | ||
44 | <ng-container ngProjectAs="description" i18n> | ||
45 | Small latency disables P2P and high latency can increase P2P ratio | ||
46 | </ng-container> | ||
47 | |||
48 | </my-peertube-checkbox> | ||
49 | </div> | ||
50 | |||
39 | <div class="form-group" [ngClass]="getDisabledLiveClass()"> | 51 | <div class="form-group" [ngClass]="getDisabledLiveClass()"> |
40 | <label i18n for="liveMaxInstanceLives"> | 52 | <label i18n for="liveMaxInstanceLives"> |
41 | Max simultaneous lives created on your instance <span class="text-muted">(-1 for "unlimited")</span> | 53 | Max simultaneous lives created on your instance <span class="text-muted">(-1 for "unlimited")</span> |