From d1f406530776b1f4787a69f1d7309d4a2800ae66 Mon Sep 17 00:00:00 2001 From: Philipp Daun Date: Sat, 5 Sep 2026 14:20:00 +0200 Subject: [PATCH] Add common video extensions --- src/Assets/Asset.php | 2 +- tests/Assets/AssetTest.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Assets/Asset.php b/src/Assets/Asset.php index 1ac0766f30b..a432150acbb 100644 --- a/src/Assets/Asset.php +++ b/src/Assets/Asset.php @@ -68,7 +68,7 @@ class Asset implements Arrayable, ArrayAccess, AssetContract, Augmentable, Conta const AUDIO_EXTENSIONS = ['aac', 'flac', 'm4a', 'mp3', 'ogg', 'wav']; const IMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'gif', 'webp', 'avif']; - const VIDEO_EXTENSIONS = ['h264', 'mp4', 'm4v', 'ogv', 'webm', 'mov']; + const VIDEO_EXTENSIONS = ['h264', 'mp4', 'm4v', 'ogv', 'webm', 'mov', 'mpeg', 'mpg', 'mkv']; protected $container; protected $path; diff --git a/tests/Assets/AssetTest.php b/tests/Assets/AssetTest.php index d19d750e5b1..9e2733134c1 100644 --- a/tests/Assets/AssetTest.php +++ b/tests/Assets/AssetTest.php @@ -611,7 +611,7 @@ public function it_checks_if_its_an_audio_file() #[Test] public function it_checks_if_its_a_video_file() { - $extensions = ['h264', 'mp4', 'm4v', 'ogv', 'webm']; + $extensions = ['h264', 'mp4', 'm4v', 'ogv', 'webm', 'mov', 'mpeg', 'mpg', 'mkv']; foreach ($extensions as $ext) { $this->assertTrue((new Asset)->path("path/to/asset.$ext")->isVideo());