rajmohan Posted March 23, 2009 Share Posted March 23, 2009 Hi Friends, I am having a .flv file. Now I have to find how long the user has viewed the video. For example: abc.flv file total duration is 30 sec. Now if the user is viewing the video for 10 sec. I want to get this 10 sec.. I want to do using PHP or javascript.. Any one know how to do this. Quote Link to comment Share on other sites More sharing options...
ToonMariner Posted March 28, 2009 Share Posted March 28, 2009 use javascript... you will need to record the time he user started the video and the video id and either store it in a cookie or send to your server with an ajax request - if the user stops the video update the cookie or send ajax once more. if they leave the page then you can check the cookie server-side or check the data sent via ajax and work your magic... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.