detect files with uppercase extensions as playable (#434)

This commit is contained in:
grunjol
2016-04-21 18:00:15 -03:00
parent 4aaf6dee05
commit 9a1c329434

View File

@@ -15,12 +15,12 @@ function isPlayable (file) {
}
function isVideo (file) {
var ext = path.extname(file.name)
var ext = path.extname(file.name).toLowerCase()
return ['.mp4', '.m4v', '.webm', '.mov', '.mkv'].indexOf(ext) !== -1
}
function isAudio (file) {
var ext = path.extname(file.name)
var ext = path.extname(file.name).toLowerCase()
return ['.mp3', '.aac', '.ogg', '.wav'].indexOf(ext) !== -1
}