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

iOS: InvalidStateError: The object is in an invalid state. #127

Open
yzhou61 opened this issue May 30, 2020 · 0 comments
Open

iOS: InvalidStateError: The object is in an invalid state. #127

yzhou61 opened this issue May 30, 2020 · 0 comments

Comments

@yzhou61
Copy link

yzhou61 commented May 30, 2020

Hi,
On iOS Safari, when I pause playback, press "Home", then go back to Safari and play again, I get the following:

InvalidStateError: The object is in an invalid state.

From:

    key: 'stop',
    value: function stop() {
      var when = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
      if (this.source) {
        this.source.stop(when);
      }
    }
  }]);
  return _class;

According to https://stackoverflow.com/questions/53100047/why-state-can-be-invalid-in-web-audio-in-safari-after-resume, it looks like "stop" is being called twice.

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

No branches or pull requests

2 participants