From 0c12054ae3c71b59b70cdd26fa68eea404a7daaa Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Apr 2021 09:24:36 +0200 Subject: Use server config to display supported videos ext --- .../config/edit-custom-config/edit-vod-transcoding.component.html | 2 +- .../config/edit-custom-config/edit-vod-transcoding.component.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'client/src/app') diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html index 1c5d6a9b4..048f7908d 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.html @@ -51,7 +51,7 @@ i18n-labelText labelText="Allow additional extensions" > - Allows users to upload .mkv, .mov, .avi, .wmv, .flv, .f4v, .3g2, .3gp, .mts, .m2ts, .mxf, or .nut videos. + Allows users to upload {{ additionalVideoExtensions }} videos. diff --git a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts index a2dc3e52a..b017dd08c 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-vod-transcoding.component.ts @@ -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(' ') } } -- cgit v1.2.3