Forum Discussion
DanielYoung-39c
6 months agoCommunity Member
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.
Hi Daniel, One solution is to add a Stop Audio trigger to your Replay button. Here's an example of how that works. I hope this helps! Please let us know if you have any questions.
- DanielYoung-39cCommunity Member
Hi Ginger and thank you! I think this will work perfectly! I appreciate the opportunity to learn from you!