Skip to content

Illegal instruction: 4 #72

Description

@alexey-sh

Hi, thanks for the cool library.
I tried to pause an audio and got the error in console
Illegal instruction: 4

a part of my source code

        if (url.pathname === '/play') {
            if (currentPlayer) {
                currentPlayer.stop();
            }
            currentPlayer = new Player(data);
            currentPlayer.play();
            currentPlayer.on('error', function(err){
                // when error occurs
                console.log(err);
            });

        }
        else if (url.pathname === '/pause') {
            if (currentPlayer) {
                currentPlayer.pause();
            }
        }
        else if (url.pathname === '/stop') {
            if (currentPlayer) {
                currentPlayer.stop();
            }
        }

Same goes for .stop()

How can I prevent the error?

node: v5.10.1
os: mac os 10.12.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions