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

Listen for load to toggle back to the initial state #28

Open
jan-dh opened this issue Mar 25, 2020 · 0 comments
Open

Listen for load to toggle back to the initial state #28

jan-dh opened this issue Mar 25, 2020 · 0 comments

Comments

@jan-dh
Copy link

jan-dh commented Mar 25, 2020

I'm updating the source of an audio player based on a slider.

  // Set new audio link
  audioSrc.src = audioLink;
  // Reload player & set it to start
  player.load();

However, the load event does not reset the progress bar or the play button.

An alternative (less preferable) would be to have a destroy option, so I can create a new instance of the player

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

No branches or pull requests

1 participant