Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chrome ended event not working #56

Open
MarsCaiWORD opened this issue Mar 1, 2018 · 1 comment
Open

chrome ended event not working #56

MarsCaiWORD opened this issue Mar 1, 2018 · 1 comment

Comments

@MarsCaiWORD
Copy link

MarsCaiWORD commented Mar 1, 2018

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
Copy link
Author

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

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

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant