From 5d9e4eaabe87ff1b115114b01075b9fabd2b0c5e Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 5 Nov 2019 10:13:37 +0100 Subject: Add ability to enabled HLS in the admin panel --- .../edit-custom-config.component.html | 22 ++++++++++++++++++++++ .../edit-custom-config.component.ts | 5 ++++- 2 files changed, 26 insertions(+), 1 deletion(-) (limited to 'client/src/app/+admin') diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html index 5e7ab03cd..e057e394e 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.html @@ -491,6 +491,28 @@ + +
+ + + + Requires ffmpeg >= 4.1 and multiplies videos storage by 2! + +

Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:

+
    +
  • Resolution change is smoother
  • +
  • Faster playback in particular with long videos
  • +
  • More stable playback (less bugs/infinite loading)
  • +
+
+
+
+
+
+
diff --git a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts index 0a69f3481..f3fb849bb 100644 --- a/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts +++ b/client/src/app/+admin/config/edit-custom-config/edit-custom-config.component.ts @@ -166,7 +166,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit { threads: this.customConfigValidatorsService.TRANSCODING_THREADS, allowAdditionalExtensions: null, allowAudioFiles: null, - resolutions: {} + resolutions: {}, + hls: { + enabled: null + } }, autoBlacklist: { videos: { -- cgit v1.2.3