Tracking view time with HLS and Clappr #2250
Unanswered
cviewsupport
asked this question in
Q&A
Replies: 1 comment
-
Hi @cviewsupport, working with HLS, buffering and segment downloading make it tricky to measure real watch time if you’re just relying on the player’s internal clock. That’s why the numbers often don’t match the user’s actual playback duration. A few possible approaches you could try:
Instead of enforcing the limit only on the player, your backend should stop serving the manifest or return an error once the user’s time quota expires. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We are using Clappr to play a live HLS stream.
We need to track the viewing time and only allow users to view the stream for a certain amount of minutes.
We have this "sort of" working BUT because of the way HLS buffers... the time is never exact.
In fact, the user's actual view time is usually wayyy off from the real time.
For example, if we give a user 15 minutes of view time, they might actually only get 9 minutes of view time.
Does anyone have a recommendation on how we might pull this off?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions