# how to track HLS stream play duration

**URL:** <https://community.wowza.com/t/how-to-track-hls-stream-play-duration/45220>\
**Category:** Wowza Streaming Engine\
**Created:** [May 1, 2015, 6:47pm UTC](https://community.wowza.com/t/how-to-track-hls-stream-play-duration/45220 "2015-05-01T18:47:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Shakya1](https://avatars.discourse-cdn.com/v4/letter/m/6f9a4e/32.png) [@Mohit\_Shakya1](https://community.wowza.com/u/Mohit_Shakya1)\
**Post date:** [May 1, 2015, 6:47pm UTC](https://community.wowza.com/t/how-to-track-hls-stream-play-duration/45220/1 "2015-05-01T18:47:12Z")

</div>

Hi,

I’ve implemented a wowza module for HLS stream tracking using “IHTTPStreamerCupertinoVODActionNotify” that can provide me streamed file name as well as data usage related to chunk.

I am not able to identify the per stream play duration. i’ve tried “stream.getElapsedTime()” but it is not working properly.

could you please help me on how to identify the hls stream play duration.

Thank You.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [May 1, 2015, 12:48pm UTC](https://community.wowza.com/t/how-to-track-hls-stream-play-duration/45220/2 "2015-05-01T12:48:24Z")

</div>

Please take a look at this module:

[Module to get HTTP and RTP performance statistics](https://www.wowza.com/docs/module-to-get-http-and-rtp-performance-statistics)

Note that Wowza has no way to know how long a user watched the chunks that were cached by the device.

Regards,

Salvadore
