# Duration for Live HLS Streams

**URL:** https://community.wowza.com/t/duration-for-live-hls-streams/39501
**Category:** Wowza Streaming Engine
**Created:** [November 5, 2012, 1:51pm UTC](https://community.wowza.com/t/duration-for-live-hls-streams/39501 "2012-11-05T13:51:53Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![Toffer\_Frydenlund](https://avatars.discourse-cdn.com/v4/letter/t/a88e4f/32.png) [@Toffer\_Frydenlund](https://community.wowza.com/u/Toffer_Frydenlund)
#### Post date: [November 5, 2012, 1:51pm UTC](https://community.wowza.com/t/duration-for-live-hls-streams/39501/1 "2012-11-05T13:51:53Z")

</div>

I would like to get the total duration of a stream (from the beginning) when using HLS/HDS but each time I refresh the page that plays back the video the player reports the total duration is 40 seconds. I am assuming this is because the HTTPPacketizer is only including the 3 previous 10 second segments. I don’t necessarily want to have all the segments of the live stream in the m3u8/f4m file as the index file size would grow over the course of the stream. I was able to get this working with FMS with the exact same FMLE settings.

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [November 6, 2012, 2:53pm UTC](https://community.wowza.com/t/duration-for-live-hls-streams/39501/2 "2012-11-06T14:53:46Z")

</div>

I don’t think there is a practical way to do this for a live stream in iOS or Flash HTTP client. Even for Flash RTMP client you would have to keep track of it server-side using a timer started in IMediaStreamActionNotify3.onPublish(), then provide that to each client.

Richard
