I am creating a simple Javascript jukebox using the latest SoundManager2 to play sound, with the source files being MP3s. I have downloaded file upload and file sorting, and at the moment I'm trying to access the ID3 data of these MP3 files, but the onid3 () callback does not work. I use Flash and verified that ID3 information is present in the files. Below is my implementation of onid3 ():
function playNextSongInQueue()
{
var nextSongInQueue = songQueue.shift();
var jukeboxTune = soundManager.createSound({
id: 'currentTune',
url: 'audio/' + nextSongInQueue.name,
onload: function() {
this.play();
},
onid3: function() {
alert('ID3 present!');
},
onfinish: function() {
this.destruct();
songFinish();
}
});
jukeboxTune.load();
songPlaying = true;
updateSongQueueDisplay();
return nextSongInQueue.name;
}
, onid3() . , , . SoundManager , onid3() , usePolicyFile true - , MP3 , , XML .
, ? , Google , , . , Javascript, SoundManager, , PHP-.
,
user577537