sound icon indicating copy to clipboard operation
sound copied to clipboard

chrome ended event not working

Open MarsCaiWORD opened this issue 6 years ago • 1 comments

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 image

MarsCaiWORD avatar Mar 01 '18 03:03 MarsCaiWORD

i found problem ,take off this be fine PIXI.sound.useLegacy = true;

btw
how to play url : http//xxx/xx.mp3

image

MarsCaiWORD avatar Mar 01 '18 04:03 MarsCaiWORD