Skip to content

Commit 4c66d76

Browse files
committed
Merge pull request #78 from SamarRizvi/patch-6
Fixed bug (audio interpreted as video)
2 parents a64d57c + 2c27dd5 commit 4c66d76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/PHPVideoToolkit/MediaParser.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -228,6 +228,10 @@ public function getFileType($file_path, $read_from_cache=true)
228228
{
229229
$data = 'image';
230230
}
231+
elseif(strpos(Mime::get($file_path), 'audio/') !== false)
232+
{
233+
$data = 'audio';
234+
}
231235
else
232236
{
233237
$data = 'video';

0 commit comments

Comments
 (0)