![](https://secure.gravatar.com/avatar/aaf46ef201edbfc38a26b49eba387503?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
Know the amount of time someone is watching the video
Hi everyone! I would like to know if your player has an API that allows to know the amount of time someone is watching the video ?
Hi everyone! I would like to know if your player has an API that allows to know the amount of time someone is watching the video ?
http://support.jwplayer.com/customer/portal/articles/1413089-javascript-api-reference
onTime()
Do you have a pratical example?
Here is some basic code that you can use – https://gist.github.com/emaxsaun/d463e580f80d533707bf