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

Can't listen to native HTML5 audio events #441

Closed
Sun0fABeach opened this issue Jul 4, 2020 · 0 comments
Closed

Can't listen to native HTML5 audio events #441

Sun0fABeach opened this issue Jul 4, 2020 · 0 comments
Assignees
Labels
Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated.

Comments

@Sun0fABeach
Copy link

Issue description

After updating v5.0.3 -> v.5.1.0, listing to native HTML5 audio events no longer works.

Environment

  • Amplitude.js Version: 5.1.0

Steps to reproduce the issue

  1. Init amplitude like so:
this.$amplitude.init({
  songs: [...], 
  callbacks: {
    stop: () => {
      console.log('stop')
    },
    play() {
      console.log('play')
    },
  }
})
  1. Play a song

What is expected?

I can see both "stop" and "play" logged to the console.

Additional details / screenshots

Only "stop" is logged to the console. Any callback that I register for a native HTML5 audio element does not fire. Amplitude specific callback like stop do fire.

@Sun0fABeach Sun0fABeach added the Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated. label Jul 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug: Needs Confirmation 🧐 Bugs that are reported, but needs to be confirmed and replicated.
Projects
None yet
Development

No branches or pull requests

2 participants