⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Help needed related to web videos..



casachit
  • profile picture
  • Member

Posted 01 September 2012 - 13:00 PM

Hi everyone,

I need help related to web videos using PHP or CODEIGNITER

I want to track if visitor has played video or not...?? if he has played video... I want to track and keep record of whether he have watched either 10%, 20% or 100% video.. how can I possible do that??

Sorry I m new to this video stuff..

goFrendiAsgard
  • profile picture
  • Member

Posted 02 September 2012 - 00:45 AM

With the first one, you can put an AJAX event on play button click to send information to server.
With the second one, I think it will be difficult if not impossible. There are a lot of possibility user stop to watch:[list]
[*]internet down <-- how could we check this?
[*]user click stop button <-- can be tracked, just as play button click event
[*]user close the browser <-- still can be tracked
[*]server down
[*]etc
[/list]
When writing this, an idea come to my mind.
First as I said before, you need an AJAX click event to send information to server when user click "play". This information will be saved in a session (or database), and it will contains the current timestamp.
You can use set_timeout or whatever to send information to server. This will update the information before, add "end-time".

What do you think?