diff options
Diffstat (limited to 'client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html')
-rw-r--r-- | client/src/app/+admin/config/edit-custom-config/edit-live-configuration.component.html | 74 |
1 files changed, 39 insertions, 35 deletions
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 34ce8efa6..e9919741f 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,10 +110,45 @@ | |||
110 | </my-peertube-checkbox> | 110 | </my-peertube-checkbox> |
111 | </div> | 111 | </div> |
112 | 112 | ||
113 | <div class="form-group" formGroupName="remoteRunners" [ngClass]="getDisabledLiveTranscodingClass()"> | 113 | <div class="callout callout-light pt-2 mt-2 pb-0"> |
114 | <label i18n>Output formats</label> | ||
115 | |||
116 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> | ||
117 | <label i18n for="liveTranscodingThreads">Live resolutions to generate</label> | ||
118 | |||
119 | <div class="ms-2 mt-2 d-flex flex-column"> | ||
120 | |||
121 | <ng-container formGroupName="resolutions"> | ||
122 | <div class="form-group" *ngFor="let resolution of liveResolutions"> | ||
123 | <my-peertube-checkbox | ||
124 | [inputName]="getResolutionKey(resolution.id)" [formControlName]="resolution.id" | ||
125 | labelText="{{resolution.label}}" | ||
126 | > | ||
127 | <ng-template *ngIf="resolution.description" ptTemplate="help"> | ||
128 | <div [innerHTML]="resolution.description"></div> | ||
129 | </ng-template> | ||
130 | </my-peertube-checkbox> | ||
131 | </div> | ||
132 | </ng-container> | ||
133 | |||
134 | <div class="form-group"> | ||
135 | <my-peertube-checkbox | ||
136 | inputName="transcodingAlwaysTranscodeOriginalResolution" formControlName="alwaysTranscodeOriginalResolution" | ||
137 | i18n-labelText labelText="Also transcode original resolution" | ||
138 | > | ||
139 | <ng-container i18n ngProjectAs="description"> | ||
140 | Even if it's above your maximum enabled resolution | ||
141 | </ng-container> | ||
142 | </my-peertube-checkbox> | ||
143 | </div> | ||
144 | </div> | ||
145 | </div> | ||
146 | </div> | ||
147 | |||
148 | <div class="form-group mt-4" formGroupName="remoteRunners" [ngClass]="getDisabledLiveTranscodingClass()"> | ||
114 | <my-peertube-checkbox | 149 | <my-peertube-checkbox |
115 | inputName="transcodingRemoteRunnersEnabled" formControlName="enabled" | 150 | inputName="transcodingRemoteRunnersEnabled" formControlName="enabled" |
116 | i18n-labelText labelText="Enable remote runners" | 151 | i18n-labelText labelText="Enable remote runners for lives" |
117 | > | 152 | > |
118 | <ng-container ngProjectAs="description"> | 153 | <ng-container ngProjectAs="description"> |
119 | <span i18n> | 154 | <span i18n> |
@@ -124,38 +159,7 @@ | |||
124 | </my-peertube-checkbox> | 159 | </my-peertube-checkbox> |
125 | </div> | 160 | </div> |
126 | 161 | ||
127 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> | 162 | <div class="form-group" [ngClass]="getDisabledLiveLocalTranscodingClass()"> |
128 | <label i18n for="liveTranscodingThreads">Live resolutions to generate</label> | ||
129 | |||
130 | <div class="ms-2 mt-2 d-flex flex-column"> | ||
131 | |||
132 | <ng-container formGroupName="resolutions"> | ||
133 | <div class="form-group" *ngFor="let resolution of liveResolutions"> | ||
134 | <my-peertube-checkbox | ||
135 | [inputName]="getResolutionKey(resolution.id)" [formControlName]="resolution.id" | ||
136 | labelText="{{resolution.label}}" | ||
137 | > | ||
138 | <ng-template *ngIf="resolution.description" ptTemplate="help"> | ||
139 | <div [innerHTML]="resolution.description"></div> | ||
140 | </ng-template> | ||
141 | </my-peertube-checkbox> | ||
142 | </div> | ||
143 | </ng-container> | ||
144 | |||
145 | <div class="form-group"> | ||
146 | <my-peertube-checkbox | ||
147 | inputName="transcodingAlwaysTranscodeOriginalResolution" formControlName="alwaysTranscodeOriginalResolution" | ||
148 | i18n-labelText labelText="Also transcode original resolution" | ||
149 | > | ||
150 | <ng-container i18n ngProjectAs="description"> | ||
151 | Even if it's above your maximum enabled resolution | ||
152 | </ng-container> | ||
153 | </my-peertube-checkbox> | ||
154 | </div> | ||
155 | </div> | ||
156 | </div> | ||
157 | |||
158 | <div class="form-group" [ngClass]="getDisabledLiveTranscodingClass()"> | ||
159 | <label i18n for="liveTranscodingThreads">Live transcoding threads</label> | 163 | <label i18n for="liveTranscodingThreads">Live transcoding threads</label> |
160 | 164 | ||
161 | <span class="small muted ms-1"> | 165 | <span class="small muted ms-1"> |
@@ -177,7 +181,7 @@ | |||
177 | <div *ngIf="formErrors.live.transcoding.threads" class="form-error">{{ formErrors.live.transcoding.threads }}</div> | 181 | <div *ngIf="formErrors.live.transcoding.threads" class="form-error">{{ formErrors.live.transcoding.threads }}</div> |
178 | </div> | 182 | </div> |
179 | 183 | ||
180 | <div class="form-group mt-4" [ngClass]="getDisabledLiveTranscodingClass()"> | 184 | <div class="form-group mt-4" [ngClass]="getDisabledLiveLocalTranscodingClass()"> |
181 | <label i18n for="liveTranscodingProfile">Live transcoding profile</label> | 185 | <label i18n for="liveTranscodingProfile">Live transcoding profile</label> |
182 | <span class="small muted ms-1" i18n>new live transcoding profiles can be added by PeerTube plugins</span> | 186 | <span class="small muted ms-1" i18n>new live transcoding profiles can be added by PeerTube plugins</span> |
183 | 187 | ||