ffmpeg – How to record watching statistics in hls streaming

I implemented a vod streaming system that converts videos to hls with ffmpeg.

And I made a Django program that gives playlists and ts files to the player so that the video can be played.

But I don’t know how to record the watching statistics.

I used vediojs and I know that I can send the watching time from the client to the server and record it.

But We are sure that this method is not accurate and the user can change the statistics.

On the other hand, I have seen vod platforms that do not take the statistics from the player (client) at all, as if the statistics are calculated by the server.

One option is to log the statistics for each ts file that is requested,
but the video buffering by the player means that these statistics are always wrong,
the player may buffer 10 minutes but the user still watches 1 minute.

Any suggestion or experience

I used vediojs and I know that I can send the watching time from the client to the server and record it.

But We are sure that this method is not accurate and the user can change the statistics.

Read more here: Source link