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.
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.