-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Closed
Milestone
Description
for (var i=0; i<self._urls.length; i++) {
var ext, urlItem;
if (self._format) {
// use specified audio format if available
ext = self._format;
} else {
// figure out the filetype (whether an extension or base64 data)
urlItem = self._urls[i];
ext = /^data:audio\/([^;,]+);/i.exec(urlItem);
if (!ext) {
ext = /\.([^.]+)$/.exec(urlItem.split('?', 1)[0]);
}
if (ext) {
ext = ext[1].toLowerCase();
} else {
self.on('loaderror');
return;
}
}
if (codecs[ext]) {
url = self._urls[i];
break;
}
}
https://github.com/goldfire/howler.js/blob/master/howler.js#L292-L318
line 314 should test mpeg
for mp3 instead of mp3
Metadata
Metadata
Assignees
Labels
No labels