Hi guys,

I need something similar to the statistics module but instead of counting node/page views, I need something to attach to a field in views to count how many times it's been viewed.

I need a counter on a video file / youtube video that once you hit the play button, the counter will increase. Any ideas?

Comments

vm’s picture

version of drupal is helpful. You would need custom code that interacted with the player (likely javasccript).

nick0989’s picture

version 7.5. 

I was afraid someone was going to say that. Might as well just create a custom module for it if theres no other way. 

vm’s picture

I see no other way as the feature would need to interact with the player and drupal to perform the action you seek. As drupal doesn't ship with a 'default' player, you would need to tie into a third party player in which you can control what occurs when the play button is interacted with. Though something to keep in mind with this, if a user pauses the player, then interacts with the play button to resume, ensure you aren't counting the resumes.

It seems to me a better idea would be to perform the count when the file is loaded rather then when the play button is interacted with for a degree of accuracy.