i18n-labelText labelText="Allow additional extensions"
>
<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>
</my-peertube-checkbox>
</div>
transcodingProfiles: SelectOptionsItem[] = []
resolutions: ResolutionOption[] = []
+ additionalVideoExtensions = ''
+
constructor (
private configService: ConfigService,
private editConfigurationService: EditConfigurationService
ngOnChanges (changes: SimpleChanges) {
if (changes['serverConfig']) {
this.transcodingProfiles = this.buildAvailableTranscodingProfile()
+
+ this.additionalVideoExtensions = this.serverConfig.video.file.extensions.join(' ')
}
}