Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot Fire onPause, onEnd, etc

See original GitHub issue

I’m new to React. I have my component set up this way and it fires the function on mount. What am I doing wrong? Thanks!

<ReactJkMusicPlayer ... onAudioProgress={this.trackTime('progress')} onAudioEnd={this.trackTime('end')} onAudioPause={this.trackTime('pause')} />

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

lijinke666commented, Jun 6, 2018

This is my test code image image

First of all you have to make sure that your song is playing . These several functions are triggered after the song is played . Make sure this parameter is not an empty array and audioLists src resources are available

      name: "xx",
      singer: "xx",
      cover: "xx",
      musicSrc: "xx.mp3"

Please see the example

steveambiellicommented, Jun 7, 2018

Welp, I got it working. 😃 Thanks for your help!

Read more comments on GitHub >

github_iconTop Results From Across the Web

onPause not fired when home button is pressed - Stack Overflow
I have an Android AppCompatActivity that fails to fire onPause event when the Home ... However, I cannot do anything but log to...
Read more >
[v2.10.1] `onProgress` callback is not firing when the video is ...
[v2.10.1] onProgress callback is not firing when the video is playing #1453 ... Problems with onEnd, onPause, etc in strict mode ...
Read more >
dojox.av._Media (version 1.7) - Dojo Toolkit
onDownloaded(percent) Fires the amount of that the media has been downloaded. Number, 0-100; onEnd(data) Fires when video ends Could be used to change...
Read more >
The MMFeedbacks component - Feel Documentation
OnRevert : this event will fire every time this MMFeedbacks gets reverted (usually automatically at the end of a play, if AutoChangeDirectionOnEnd is...
Read more >
APL video doesn't work only on Echo Show 5 - Forums
Now my question is, as a skill developer how many devices are we suppose to test it? As you continue to launch new...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found