Pay per view script
Posted: Sat Aug 22, 2009 9:42 am
Hi All,
I'm looking for a php script to help me track how long a user watches a streaming video. I am looking to use a simple php flv streaming player to play the videos so no expensive windows streaming server.
The idea is, when the user clicks the video to watch I will know their user id and video id from the database. No problem. I can check if they have credit etc...easy!
But how do I track how long they are viewing the video remembering they could close the window, jump to another page, stop the video? Once I know how long they have viewed the video I can update their account.
I tried searching online but only found one php script for adult chat pay per view...not want I'm looking for.
So any ideas will be much appreciated.
Thanks
I'm looking for a php script to help me track how long a user watches a streaming video. I am looking to use a simple php flv streaming player to play the videos so no expensive windows streaming server.
The idea is, when the user clicks the video to watch I will know their user id and video id from the database. No problem. I can check if they have credit etc...easy!
But how do I track how long they are viewing the video remembering they could close the window, jump to another page, stop the video? Once I know how long they have viewed the video I can update their account.
I tried searching online but only found one php script for adult chat pay per view...not want I'm looking for.
So any ideas will be much appreciated.
Thanks