Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Watch time ? #1500

Open
miroirdelame opened this issue Dec 21, 2023 · 1 comment
Open

Watch time ? #1500

miroirdelame opened this issue Dec 21, 2023 · 1 comment

Comments

@miroirdelame
Copy link

miroirdelame commented Dec 21, 2023

Hello,

First of all, thanks a lot for this wonderful module, that's been working like a charm for a while in production.
Now I need to know, for every single stream and in a reliable manner, the watch time.
Is there any way for me to achieve this ? Am I missing a setting or somechat ?

Coding is not a problem to me, but I still don't have the initial idea.

Thanks in advance

EDIT : i'm using HLS and VideoJS on the front. And I'm not even sure that a server-side solution is relevant, as a segment loaded from the server might not actually be watched (due to caching)

@erankor
Copy link
Contributor

erankor commented Dec 23, 2023

Hi, as you wrote, a server side solution can't be accurate due to pre-fetching of segments - the client downloads future segments in order to be more resilient to temporary network issues.
In addition to that, medium/large scale deployments should employ a CDN / caching proxies in front of this module. In these cases, the module has no visibility to the segments being downloaded - the stream may be downloaded once from the server running this module, and served to millions of users by the CDN.
Since it can only work in very small deployments / "in the lab", this module does not contain a feature for counting playback time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants