Skip to content Skip to sidebar Skip to footer

How To Display Views On Html5 Video?

I am trying to get a sort of 'YouTube' like number of views section in my html. I want to add 1 everytime the viewer gets over minute 4 of the video. So far I applied this Javascri

Solution 1:

JavaScript runs in the user's browser. It has no way of communicating with other browsers viewing the video, and it will stop counting when you close the page, so it will only ever be able to count how often you watched the video in the current session.

You need to load and store this information on your server somewhere if you want to make this work.

Post a Comment for "How To Display Views On Html5 Video?"