Total Watched Time Endpoint? #704
Replies: 2 comments 2 replies
-
Thanks for reaching out @MatyasKonig - moving this to the discussion board. Before I get into my response, please know that we are taking your feedback in for internal discussion to possibly identify a better solution that can be provided for this type of request in the future. Looking at your two ideas, the first sounds more sound to me. I would also reccomend looking at the As mentioned, we will disscus a more optimized and easier to use method internally and update this discussion with any progress. Thanks again. |
Beta Was this translation helpful? Give feedback.
-
use the function getPlayed() https://github.com/vimeo/player.js/#getplayed-promisearray-error returns an array containing all intervals watched. At the end you sum all these intervals and divide by the total time of the video |
Beta Was this translation helpful? Give feedback.
-
Not exactly an issue, but a question (was asked to post here by Vimeo support).
I am trying to figure out a way to get total time user spent watching a particular video. The end goal is to collect the following information about every session: what video the user watches and the total duration they watched. An ideal solution would be to have a getter that would retrieve total seconds watched, but I could not find such an API endpoint. Is there a best practice for getting this information?
Using the documentation and API Demo, I have developed the following ideas, but they don’t seem like the best practice. Are the approaches below the correct way to grab total duration of a session?
Both ideas seem to be workarounds rather than proper solutions. I am sure many people have solved a similar challenge in the past, and we want to take full advantage of Vimeo Player SDK. What is the most efficient way to get the total duration a user has watched during a particular session?
Beta Was this translation helpful? Give feedback.
All reactions