Skip to content

Can't listen to native HTML5 audio events #441

@Sun0fABeach

Description

@Sun0fABeach

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.

Metadata

Metadata

Assignees

Labels

Bug: Needs Confirmation 🧐Bugs that are reported, but needs to be confirmed and replicated.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions