# Trigger PHP or Javascript function when listener hits a specific track time

**URL:** <https://community.elfsight.com/t/trigger-php-or-javascript-function-when-listener-hits-a-specific-track-time/57195>\
**Category:** Audio Player\
**Tags:** Gathering-Feedback\
**Created:** [June 16, 2024, 8:57am UTC](https://community.elfsight.com/t/trigger-php-or-javascript-function-when-listener-hits-a-specific-track-time/57195 "2024-06-16T08:57:58Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Raymond\_Wade](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/raymond_wade/32/24134_2.png) [@Raymond\_Wade](https://community.elfsight.com/u/Raymond_Wade)\
**Post date:** [June 16, 2024, 8:57am UTC](https://community.elfsight.com/t/trigger-php-or-javascript-function-when-listener-hits-a-specific-track-time/57195/1 "2024-06-16T08:57:58Z")

</div>

**Use Case**

A Listener is listening to a track with a duration of 1:05 minutes, The widget owner calls a JavaScript or PHP function at the 1:04 time mark that may update a database, show an ad, or redirect the user.

The trigger effect and timing should be defined by the widget owner.

**Personal Feedback:**  
My website rewards its members for doing various activities by updating a database column by adding points. So I would reward the listener for listing to the entire track by adding points if they are a registered member.

---

<div class="post-metadata">

**Author:** ![Max](https://sea2.discourse-cdn.com/flex020/user_avatar/community.elfsight.com/max/32/710_2.png) [@Max](https://community.elfsight.com/u/Max)\
**Post date:** [June 17, 2024, 12:11pm UTC](https://community.elfsight.com/t/trigger-php-or-javascript-function-when-listener-hits-a-specific-track-time/57195/2 "2024-06-17T12:11:29Z")

</div>

Hm, interesting idea @Raymond_Wade 👋

If this request gains more votes, we’ll try to think it over in the future 🙂
