From 6c102dfac0e422839f3528ba599341de4613ab98 Mon Sep 17 00:00:00 2001 From: Knah Tsaeb Date: Fri, 25 Sep 2015 11:59:04 +0200 Subject: [PATCH] [add] change title name by id3 tag --- player.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/player.js b/player.js index a614eac..4f4868a 100644 --- a/player.js +++ b/player.js @@ -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];