sound
sound copied to clipboard
chrome ended event not working
my code like this
PIXI.sound.Sound.from({
url: 'xxxxxxx',
preload: true,
loaded: function (err, sound) {
const instance = sound.play();
instance.on('progress', function (progress) {
console.log('Amount played: ', Math.round(progress * 100) + '%');
});
instance.on('end', function () {
console.log('Sound finished playing');
});
}
});
result , Increased by 86% repeat , and not trigger end event
A few days ago began to have this problem
i found problem ,take off this be fine PIXI.sound.useLegacy = true;
btw
how to play
url : http//xxx/xx.mp3