[add] change title name by id3 tag

This commit is contained in:
Knah Tsaeb 2015-09-25 11:59:04 +02:00
parent 62304d40b1
commit 6c102dfac0
1 changed files with 2 additions and 0 deletions

View File

@ -121,11 +121,13 @@ function populateList(arr, e, dir) {
audio.load();
audio.play();
track = parseInt(this.id);
console.log(this);
if (mime == 'audio/mpeg' || mime == 'audio/aac') {
ID3.loadTags(file, function() {
var tags = ID3.getAllTags(file);
document.getElementById("artist").textContent = "Artist : " + tags.artist || "";
document.getElementById("album").textContent = "Album : " + tags.album || "";
title.textContent = tags.title || title.textContent;
});
}
last = music[track];