Page 1 of 1

An expert question: How to detect someone has watched a vid

Posted: Fri Dec 28, 2007 6:21 pm
by kaisellgren
Hello,

I need to create a solution where I can be 99% sure that my visitors have watched a specific video before getting registered. They must watch the 1min video ENTIRELY without going forward or skip it. I can set a timer meaning that I could log the access time of that video for all IPs and then compared that the time is right.

For example, I have 1min and 3sec video. When IP 1.1.1.1 accesses the page PHP will log into DB that IP address plus the current time and also the video ID. Once the video has ended and user presses continue (whatsoever) and then PHP will look if current time - 63 > db time. If that's true then it would continue to registration page.

It still have some leaks. Like user can wait the time and then go to the reg page. Is there any way I could include a random generated hash code inside a video somehow or someway I could make sure the video is SHOWN for 1min 3sec. I know I can not force people to look at the video, but if it least shows the entire video it would be awesome.

Any ideas are welcome!

Posted: Fri Dec 28, 2007 6:38 pm
by Ambush Commander
Why not just disable the "continue" button until the video is finished?

Posted: Fri Dec 28, 2007 7:03 pm
by Christopher
A streaming solution might allow you to know if they stopped early.

Posted: Fri Dec 28, 2007 7:05 pm
by John Cartwright
If you have control over the player used you can generate a one time pad and pass this along to the registration page once the video is finished.

Posted: Fri Dec 28, 2007 10:35 pm
by Kieran Huggins
This sounds like a great use for flash video to me!

Mark this day in your calendar folks, it's not often I advocate flash.

Posted: Fri Dec 28, 2007 11:05 pm
by John Cartwright
Kieran Huggins wrote:This sounds like a great use for flash video to me!

Mark this day in your calendar folks, it's not often I advocate flash.
Doomsday list
[s]- Planetary alignment[/s]
[s]- Kieran advocating flash[/s]

8O Uh-oh.

Posted: Sat Dec 29, 2007 3:36 am
by ianhull
Flash will work fine for this,

you can use myMovie.onComplete(){
your actions here
}

your actions could be a call to a php script to set a cookie or a session.

If the cokie or session is not set then they did not watch it all :)

HTH

Posted: Sat Dec 29, 2007 11:38 am
by Jonah Bron
Yup. Flash is the way to go.

Just make it so there is no skipping feature in the movie.
And, make this javascript function:

Code: Select all

function enableBtn(){
    document.getElementById('submit_btn').disabled=false;
}

Code: Select all

<!--and the button: -->
<input type="submit" value="Submit" disabled="disabled" id="submit_btn" />
and apply this ActionScript to the last frame in the movie:

Code: Select all

getURL('javascript: enableBtn();');
wierd... it is supposed to be "javascript: enabledBtn();", not "javascript: enableBtn();"

The result:
the button is disabled;
the movie plays;
the movie finishes;
the button is enabled;

Posted: Sat Dec 29, 2007 1:07 pm
by John Cartwright
If having the user watch the movie is a must, I wouldn't rely on javascript at all.

Posted: Sat Dec 29, 2007 2:46 pm
by califdon
Jcart wrote:
Kieran Huggins wrote:This sounds like a great use for flash video to me!

Mark this day in your calendar folks, it's not often I advocate flash.
Doomsday list
[s]- Planetary alignment[/s]
[s]- Kieran advocating flash[/s]

8O Uh-oh.
LMAO!!!!!

Posted: Sat Dec 29, 2007 2:54 pm
by Kieran Huggins
Jcart wrote:
Kieran Huggins wrote:This sounds like a great use for flash video to me!

Mark this day in your calendar folks, it's not often I advocate flash.
Doomsday list
[s]- Planetary alignment[/s]
[s]- Kieran advocating flash[/s]

8O Uh-oh.
The end is most certainly nigh. If I suddenly switched to ASP we'd have mere seconds before the universe imploded.