I’ve been searching around the internet for a while to store a click counter within a flash video. Basically count how many times a video was actually viewed instead of the page being loaded.
I have a few restrictions. 🙁
- I cannot use a server side language.
- I cannot use a database. (I want to use a text file stored on the server)
Is this even possible?
There is a simple and effective solution : Google analytics API.
Get an analytics account, and you can track videos clicks and much more, with beautiful graphs.
You can create dynamic stats from javascript or from flash, see this example.
If you use flowplayer, just hook to their API to track play, pause or any event.