![](https://secure.gravatar.com/avatar/aa8a7a3fef21a6433c448446d22a8f3a?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
how to i get user watched time of the video ?
Consider a video total lenth is 5 min. In that user start watching the video duration from2 min to 4 min. in that how do i will get time of 2 min. in jw aplyer
Consider a video total lenth is 5 min. In that user start watching the video duration from2 min to 4 min. in that how do i will get time of 2 min. in jw aplyer
Consider a video total lenth is 5 min. In that user start watching the video duration from2 min to 4 min.that means user watched video of total length is 2 min, how do i will get that 2 min of user actual user watched video ?
You’ll have to build something using our API. It really depends on your use case. Have a look at the documentation here:
https://developer.jwplayer.com/jw-player/docs/javascript-api-reference/#jwplayerontime
but with the duration and position how do I will get the user video time. Example: 10 min video user saw first 2-3 min later he saw 5-7 min only total he saw 3 min only that 3 min how can I get with this duration and position.
Hi,
You’d have to find a way to count the time watched. Here’s a code example that could help you:
http://qa.jwplayer.com.s3.amazonaws.com/~george/demo-timewatched.html