By nick0989 on
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
=-=
version of drupal is helpful. You would need custom code that interacted with the player (likely javasccript).
version 7.5.
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.
=-=
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.