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());