Add ability to enabled HLS in the admin panel
This commit is contained in:
parent
41eac41b05
commit
5d9e4eaabe
5 changed files with 29 additions and 6 deletions
|
@ -491,6 +491,28 @@
|
||||||
</my-peertube-checkbox>
|
</my-peertube-checkbox>
|
||||||
</div>
|
</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">
|
<div class="form-group">
|
||||||
<label i18n for="transcodingThreads">Transcoding threads</label>
|
<label i18n for="transcodingThreads">Transcoding threads</label>
|
||||||
<div class="peertube-select-container">
|
<div class="peertube-select-container">
|
||||||
|
|
|
@ -166,7 +166,10 @@ export class EditCustomConfigComponent extends FormReactive implements OnInit {
|
||||||
threads: this.customConfigValidatorsService.TRANSCODING_THREADS,
|
threads: this.customConfigValidatorsService.TRANSCODING_THREADS,
|
||||||
allowAdditionalExtensions: null,
|
allowAdditionalExtensions: null,
|
||||||
allowAudioFiles: null,
|
allowAudioFiles: null,
|
||||||
resolutions: {}
|
resolutions: {},
|
||||||
|
hls: {
|
||||||
|
enabled: null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
autoBlacklist: {
|
autoBlacklist: {
|
||||||
videos: {
|
videos: {
|
||||||
|
|
|
@ -209,8 +209,7 @@ transcoding:
|
||||||
720p: false
|
720p: false
|
||||||
1080p: false
|
1080p: false
|
||||||
2160p: false
|
2160p: false
|
||||||
# /!\ EXPERIMENTAL /!\
|
# /!\ Requires ffmpeg >= 4.1
|
||||||
# /!\ Requires ffmpeg >= 4
|
|
||||||
# Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
|
# Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
|
||||||
# * Resolution change is smoother
|
# * Resolution change is smoother
|
||||||
# * Faster playback in particular with long videos
|
# * Faster playback in particular with long videos
|
||||||
|
|
|
@ -223,8 +223,7 @@ transcoding:
|
||||||
720p: false
|
720p: false
|
||||||
1080p: false
|
1080p: false
|
||||||
2160p: false
|
2160p: false
|
||||||
# /!\ EXPERIMENTAL /!\
|
# /!\ Requires ffmpeg >= 4.1
|
||||||
# /!\ Requires ffmpeg >= 4
|
|
||||||
# Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
|
# Generate HLS playlists and fragmented MP4 files. Better playback than with WebTorrent:
|
||||||
# * Resolution change is smoother
|
# * Resolution change is smoother
|
||||||
# * Faster playback in particular with long videos
|
# * Faster playback in particular with long videos
|
||||||
|
|
|
@ -21,7 +21,7 @@ function checkMissedConfig () {
|
||||||
'signup.enabled', 'signup.limit', 'signup.requires_email_verification',
|
'signup.enabled', 'signup.limit', 'signup.requires_email_verification',
|
||||||
'signup.filters.cidr.whitelist', 'signup.filters.cidr.blacklist',
|
'signup.filters.cidr.whitelist', 'signup.filters.cidr.blacklist',
|
||||||
'redundancy.videos.strategies', 'redundancy.videos.check_interval',
|
'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',
|
'import.videos.http.enabled', 'import.videos.torrent.enabled', 'auto_blacklist.videos.of_users.enabled',
|
||||||
'trending.videos.interval_days',
|
'trending.videos.interval_days',
|
||||||
'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route',
|
'instance.name', 'instance.short_description', 'instance.description', 'instance.terms', 'instance.default_client_route',
|
||||||
|
|
Loading…
Reference in a new issue