1
0
Fork 0

Add ability to enabled HLS in the admin panel

This commit is contained in:
Chocobozzz 2019-11-05 10:13:37 +01:00
parent 41eac41b05
commit 5d9e4eaabe
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
5 changed files with 29 additions and 6 deletions

View File

@ -491,6 +491,28 @@
</my-peertube-checkbox>
</div>
<ng-container formGroupName="hls">
<div class="form-group" >
<my-peertube-checkbox
inputName="transcodingHlsEnabled" formControlName="enabled"
i18n-labelText labelText="HLS support enabled"
>
<ng-template ptTemplate="help">
<ng-container i18n>
<strong>Requires ffmpeg >= 4.1 and multiplies videos storage by 2!</strong>
<p>Generate HLS playlists and fragmented MP4 files resulting in a better playback than with the current default player:</p>
<ul>
<li>Resolution change is smoother</li>
<li>Faster playback in particular with long videos</li>
<li>More stable playback (less bugs/infinite loading)</li>
</ul>
</ng-container>
</ng-template>
</my-peertube-checkbox>
</div>
</ng-container>
<div class="form-group">
<label i18n for="transcodingThreads">Transcoding threads</label>
<div class="peertube-select-container">

View File

@ -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: {

View File

@ -209,8 +209,7 @@ transcoding:
720p: false
1080p: false
2160p: false
# /!\ EXPERIMENTAL /!\
# /!\ Requires ffmpeg >= 4
# /!\ Requires ffmpeg >= 4.1
# Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
# * Resolution change is smoother
# * Faster playback in particular with long videos

View File

@ -223,8 +223,7 @@ transcoding:
720p: false
1080p: false
2160p: false
# /!\ EXPERIMENTAL /!\
# /!\ Requires ffmpeg >= 4
# /!\ Requires ffmpeg >= 4.1
# Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
# * Resolution change is smoother
# * Faster playback in particular with long videos

View File

@ -21,7 +21,7 @@ function checkMissedConfig () {
'signup.enabled', 'signup.limit', 'signup.requires_email_verification',
'signup.filters.cidr.whitelist', 'signup.filters.cidr.blacklist',
'redundancy.videos.strategies', 'redundancy.videos.check_interval',
'transcoding.enabled', 'transcoding.threads', 'transcoding.allow_additional_extensions',
'transcoding.enabled', 'transcoding.threads', 'transcoding.allow_additional_extensions', 'transcoding.hls.enabled',
'import.videos.http.enabled', 'import.videos.torrent.enabled', 'auto_blacklist.videos.of_users.enabled',
'trending.videos.interval_days',
'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route',