# Get time once using onPlayheadTime javascript

**URL:** <https://community.wowza.com/t/get-time-once-using-onplayheadtime-javascript/52890>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-player-javascript-api\
**Created:** [February 21, 2019, 2:27pm UTC](https://community.wowza.com/t/get-time-once-using-onplayheadtime-javascript/52890 "2019-02-21T14:27:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rudresh\_Kumar](https://avatars.discourse-cdn.com/v4/letter/r/34f0e0/32.png) [@Rudresh\_Kumar](https://community.wowza.com/u/Rudresh_Kumar)\
**Post date:** [February 21, 2019, 2:27pm UTC](https://community.wowza.com/t/get-time-once-using-onplayheadtime-javascript/52890/1 "2019-02-21T14:27:39Z")

</div>

I want to comment on video and want to get playhead time with every comment. I started

onPlayheadTime at the time of comment but unable to stop after comment.
