There are some flash players that can have modules to call a php function for statistics. As an example this plugin for JWplayer4
http://www.longtailvideo.com/addons/plugins/44/Your-Analytics?q=
or this http://www.longtailvideo.com/addons/plugins/108/MadLytics?q=

How can I configure the JWplayer4 to work with the module from SWF tools?
Also... it would be great to add a drupal table for statistics of plays. is there any API or something? Then we could integrate the number in Views and make a View of the most played nodes...

isn't the idea great? Anyone interested? Where do we start?

Comments

Stuart Greenfield’s picture

Status: Active » Closed (won't fix)

I'm not sure this is a core feature for SWF Tools. If you are using private file downloads then there are already download counter modules that count requests for a given file.

You can implement the JW plug-in by calling the relevant plug-in when you call the player by setting the appropriate flashvar, but then you need a custom bit of code to receive the requests to count.

I'd rather just let SWF Tools focus on putting the media on the page than expand it with counter features. Sorry!