Hi

I wanted to store the play count as well as the download count for the video files.
I was able to solve the download count issue.But I was not able to resolve the
play count issue.
I noticed certain things
when we do a node_load() for the video node it shows something called as the play_counter
which increments on every refresh and not on every play.
I would like to know how do I increment the play_counter on every play & not on every refresh.

I also noticed that the download link for the original file is directly given and I would prefer it
through a menu callback which would be much better.

Comments

hairforce’s picture

I've been working on a similar issue. On my site, the play counter only increments when someone hits the full node page. I use a custom video player, and most video views are from a playlist-based player on the front page, or from embedded videos on myspace, etc.

I've been looking into putting together a quick little page that i can make the players hit in the background to increment the counter, but haven't made much progress. I'll post here if i get anywhere, but help would be appreciated.

junedkazi’s picture

Hi
Just wanted to say that it can be deone for local videos which are uploaded using ffmpeg.
If you want to know how I can give the changes

Regards

Juned Kazi

adi4u’s picture

Version: 5.x-2.4-x » 4.7.x-1.0
Assigned: Unassigned » adi4u
Priority: Normal » Critical

Hi Juned ,
I want your help for play count of video file. Right now I am using FlowLP Player for my video display. By default this video is not playing. I want user click on video to play, a counter will invoke and update database increased by 1.

So, kindly help me out of this problem.

Regards
Aditya Swaroop

travist’s picture

Status: Active » Closed (fixed)

To count the number of plays, this needs to be done from the media player. The Dash Media Player supports this type of Play counter counting.