diff --git a/dockerfile b/dockerfile index 5ba553e..940943e 100644 --- a/dockerfile +++ b/dockerfile @@ -10,5 +10,9 @@ RUN apt install -y ghostscript RUN apt install -y imagemagick +# ffmpeg für video support + +RUN apt install -y ffmpeg + # Start from the webserver neccessary or not? Test from 23.04.2021 -> not needed #CMD ["apache2-foreground"] \ No newline at end of file diff --git a/example.LocalSettings.php b/example.LocalSettings.php index e22ed84..f0e5f8b 100644 --- a/example.LocalSettings.php +++ b/example.LocalSettings.php @@ -247,4 +247,18 @@ $wgPdftoText = '/usr/bin/pdftotext'; # Allow External Images from my own servers $wgAllowExternalImages = true; -$wgAllowExternalImagesFrom = [ 'http://127.0.0.1/', 'https://cloud.rd13server.de/' ]; // MediaWiki 1.14+ \ No newline at end of file +$wgAllowExternalImagesFrom = [ 'http://127.0.0.1/', 'https://cloud.rd13server.de/' ]; // MediaWiki 1.14+ + +# Support Video Files and external Video Sources +################################################ +wfLoadExtension( 'EmbedVideo' ); + +$wgEmbedVideoAddFileExtensions = true; // Boolean - Enable or disable adding video/audio file extensions to the list of allowable files to be uploaded. +$wgEmbedVideoEnableVideoHandler = true; // Boolean - Enable or disable the video media handlers for displaying embedded video in articles. +$wgEmbedVideoEnableAudioHandler = true; // Boolean - Enable or disable the audio media handlers for displaying embedded audio in articles. +#$wgEmbedVideoDefaultWidth = 480; // Integer - Globally override the default width of video players. When not set this uses the video service's default width which is typically 640 pixels. +#$wgEmbedVideoMinWidth = 480; // Integer - Minimum width of video players. Widths specified below this value will be automatically bounded to it. +$wgEmbedVideoMaxWidth = 1920; // Integer - Maximum width of video players. Widths specified above this value will be automatically bounded to it. +$wgFFmpegLocation = '/usr/bin/ffmpeg'; // String - Set the location of the ffmpeg binary. +$wgFFprobeLocation = '/usr/bin/ffprobe'; // String - Set the location of the ffprobe binary. +