EDIT POST First Post Mark as Spam hristinadzhogleva
Posts: 1 - Registered: 2013-04-24 10:54:52
Hello guys -
Ideally, I want to have 2 videos on the same screen and participants will be able to start and watch any video they want; I should be able to capture the time that they spend on watching each video; participants will have a count-down timer on the top of the screen and they will be automatically redirected to the next page as soon as the 5 mins are over.
Alternatively, two videos can be on two different screens – so they see one video first and then they can decide when to proceed to the second video which will be on the next screen. They should have a total time of 5 minutes to spend on both screens and will be given a count-down timer on the top of the screen. Participants will be automatically redirected to the next page as soon as the 5 mins are over. I again need to capture the time that they spend on each video.
Thanks a lot in advance!
EDIT POST Reply #1 Mark as Spam mirceapop
Posts: 1 - Registered: 2013-06-28 08:52:02
Hi. You can do that using HTML5 Video API. If your visitors want stop watching one, you need a stop button on the player with a pause one if allowed. You start timing and then when they press Stop you save the time into a variable. Same with second video. Can't write some code right now but using the resources here: www.metamorphosite.com/time-site-javasc ... equest-php and here: developer.mozilla.org/en-US/docs/Web/HTML/Using_HTML5_audio_and_video#Controlling_media_playback .