# Audio component .Replay() Function

**URL:** <https://forum.inductiveautomation.com/t/audio-component-replay-function/99042>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [November 24, 2024, 5:30am UTC](https://forum.inductiveautomation.com/t/audio-component-replay-function/99042 "2024-11-24T05:30:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hisyam\_agung](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hisyam\_agung](https://forum.inductiveautomation.com/u/hisyam_agung)\
**Post date:** [November 24, 2024, 5:30am UTC](https://forum.inductiveautomation.com/t/audio-component-replay-function/99042/1 "2024-11-24T05:30:57Z")

</div>

I have a project to turn on the audio when the value is 1 and 0. Can you help me to create a script to replays the media file from the beginning when the audio pauses in the middle of the track?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 25, 2024, 3:57am UTC](https://forum.inductiveautomation.com/t/audio-component-replay-function/99042/2 "2024-11-25T03:57:58Z")

</div>

Since you've said "Audio" component instead of "Sound Player", I assume this is a Perspective question?

---

<div class="post-metadata">

**Author:** ![hisyam\_agung](https://avatars.discourse-cdn.com/v4/letter/h/9dc877/32.png) [@hisyam\_agung](https://forum.inductiveautomation.com/u/hisyam_agung)\
**Post date:** [November 25, 2024, 2:30pm UTC](https://forum.inductiveautomation.com/t/audio-component-replay-function/99042/3 "2024-11-25T14:30:17Z")

</div>

Yes, this about Perspective
