[add] change title name by id3 tag
This commit is contained in:
parent
62304d40b1
commit
6c102dfac0
|
@ -121,11 +121,13 @@ function populateList(arr, e, dir) {
|
||||||
audio.load();
|
audio.load();
|
||||||
audio.play();
|
audio.play();
|
||||||
track = parseInt(this.id);
|
track = parseInt(this.id);
|
||||||
|
console.log(this);
|
||||||
if (mime == 'audio/mpeg' || mime == 'audio/aac') {
|
if (mime == 'audio/mpeg' || mime == 'audio/aac') {
|
||||||
ID3.loadTags(file, function() {
|
ID3.loadTags(file, function() {
|
||||||
var tags = ID3.getAllTags(file);
|
var tags = ID3.getAllTags(file);
|
||||||
document.getElementById("artist").textContent = "Artist : " + tags.artist || "";
|
document.getElementById("artist").textContent = "Artist : " + tags.artist || "";
|
||||||
document.getElementById("album").textContent = "Album : " + tags.album || "";
|
document.getElementById("album").textContent = "Album : " + tags.album || "";
|
||||||
|
title.textContent = tags.title || title.textContent;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
last = music[track];
|
last = music[track];
|
||||||
|
|
Loading…
Reference in a new issue