Verified Commit 0c12054a authored by Chocobozzz's avatar Chocobozzz
Browse files

Use server config to display supported videos ext

parent 7695987e
......@@ -51,7 +51,7 @@
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>
......
......@@ -20,6 +20,8 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
transcodingProfiles: SelectOptionsItem[] = []
resolutions: ResolutionOption[] = []
additionalVideoExtensions = ''
constructor (
private configService: ConfigService,
private editConfigurationService: EditConfigurationService
......@@ -35,6 +37,8 @@ export class EditVODTranscodingComponent implements OnInit, OnChanges {
ngOnChanges (changes: SimpleChanges) {
if (changes['serverConfig']) {
this.transcodingProfiles = this.buildAvailableTranscodingProfile()
this.additionalVideoExtensions = this.serverConfig.video.file.extensions.join(' ')
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment