Forum Discussion

DanielYoung-39c's avatar
DanielYoung-39c
Community Member
6 months ago

Custom Player: Play / Pause / Replay buttons

Hello community!

I'm working on creating a custom audio player that will play / pause / and replay the audio in the file. Currently the Play / Pause work as intended, but I cannot get the Replay button to restart the audio from the beginning.

Goal

  • Audio should play normally via the Play button.
  • Audio should pause normally via the Pause button.
  • User should be able to replay the audio from the beginning with the Replay button.

Error

  • Replay button does not replay the audio from the beginning
  • If user clicks the Replay button a 2nd time, audio should restart, and it is not

I've included a sample of what I'm trying to do and would love some support!

Thank you in advance.