DEV: Create a site setting for video thumbnails (#21266)
Creating a way to disable the auto generation of video thumbnails.
This commit is contained in:
parent
c6d44e504f
commit
67a8c13197
|
@ -18,6 +18,9 @@ export default Mixin.create(ExtendableUploader, UppyS3Multipart, {
|
||||||
|
|
||||||
@bind
|
@bind
|
||||||
_generateVideoThumbnail(videoFile, uploadUrl) {
|
_generateVideoThumbnail(videoFile, uploadUrl) {
|
||||||
|
if (!this.siteSettings.video_thumbnails_enabled) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
let video = document.createElement("video");
|
let video = document.createElement("video");
|
||||||
video.src = URL.createObjectURL(videoFile.data);
|
video.src = URL.createObjectURL(videoFile.data);
|
||||||
|
|
||||||
|
|
|
@ -1568,6 +1568,10 @@ files:
|
||||||
default: false
|
default: false
|
||||||
client: true
|
client: true
|
||||||
hidden: true
|
hidden: true
|
||||||
|
video_thumbnails_enabled:
|
||||||
|
default: true
|
||||||
|
client: true
|
||||||
|
hidden: true
|
||||||
|
|
||||||
trust:
|
trust:
|
||||||
default_trust_level:
|
default_trust_level:
|
||||||
|
|
Loading…
Reference in New Issue