JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!



I am a newbie and need some help with Javascript please. :-)


H

keyboard_arrow_up
0
keyboard_arrow_down


First Post Mark as Spam hristinadzhogleva
Posts: 1 - Registered: 2013-04-24 10:54:52

Hello guys -

I need some help with Javascript in Qualtrics...I need to do the following:

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.

Do you have any idea how this could be done? If you could help me with the code, that would be great. I just have almost never used javascript so far...

Thanks a lot in advance!




M

keyboard_arrow_up
0
keyboard_arrow_down


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 .






JOIN DEVPPL

It looks like you are new here. If you want to get involved, click on Join below!




MENU
Advertising