Jump to content

Video tracking


rajmohan

Recommended Posts

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.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.