mirror of https://github.com/Chocobozzz/PeerTube
Use server config to display supported videos ext
parent
7695987e9d
commit
0c12054ae3
|
@ -51,7 +51,7 @@
|
||||||
i18n-labelText labelText="Allow additional extensions"
|
i18n-labelText labelText="Allow additional extensions"
|
||||||
>
|
>
|
||||||
<ng-container ngProjectAs="description">
|
<ng-container ngProjectAs="description">
|
||||||
<span i18n>Allows users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, .m2ts, .mxf, or .nut videos.</span>
|
<span i18n>Allows users to upload {{ additionalVideoExtensions }} videos.</span>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
</my-peertube-checkbox>
|
</my-peertube-checkbox>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -20,6 +20,8 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
|
||||||
transcodingProfiles: SelectOptionsItem[] = []
|
transcodingProfiles: SelectOptionsItem[] = []
|
||||||
resolutions: ResolutionOption[] = []
|
resolutions: ResolutionOption[] = []
|
||||||
|
|
||||||
|
additionalVideoExtensions = ''
|
||||||
|
|
||||||
constructor (
|
constructor (
|
||||||
private configService: ConfigService,
|
private configService: ConfigService,
|
||||||
private editConfigurationService: EditConfigurationService
|
private editConfigurationService: EditConfigurationService
|
||||||
|
@ -35,6 +37,8 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
|
||||||
ngOnChanges (changes: SimpleChanges) {
|
ngOnChanges (changes: SimpleChanges) {
|
||||||
if (changes['serverConfig']) {
|
if (changes['serverConfig']) {
|
||||||
this.transcodingProfiles = this.buildAvailableTranscodingProfile()
|
this.transcodingProfiles = this.buildAvailableTranscodingProfile()
|
||||||
|
|
||||||
|
this.additionalVideoExtensions = this.serverConfig.video.file.extensions.join(' ')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue