Calculate how much of video has been viewed.

Hello,

We have a Video on Demand application, and we need to accurately calculate how much of a video a user has viewed.

For RTMP we use the Wowza logs to work this out, as client commands (play, pause, unpause, seek, stop, etc) are sent through and logged by Wowza.

For HLS and HDS Wowza does not log the pause and unpause commands, so it is difficult (impossible?) to determine if the video is playing. Is this an option that can be set in Wowza, or is it due to the http based protocols?

Do you have any suggestions on how we can track how much of a video a user has viewed?

Thanks

David.

Hello, please take a look at this guide:

How to gather user streaming statistics

Kind regards,

Salvadore

Hi Salvadore,

Thanks for your message.

We are able to pass id information through to the log files.

The problem is determining how much of the video has been viewed by a user. HLS and HDS do not appear to send pause and unpause events do not appear to be logged by Wowza. Is this an option in Wowza or is it a function of the http based protocols?

Cheers

David.

Hi,

This is player specific behavior. For VOD files, when a VOD HLS stream is requested, all the media chunk information is available in the chunklist file received by the player. Normally, when this chunklist is received, the player starts to download the media chunks, whether the user is watching the entire video or not. Since the chunks are downloaded by the player in advance, on the Wowza server side there is no way of knowing how much of the video was already played back by a particular client.

Zoran

Thanks salvadore, really useful info.