
Adding Videos to Your Study
To show a video in Labvanced, add a Video object to a screen, choose an MP4 file encoded in H.264 and decide when it should play.
Add a video
Have your video file ready as an MP4 encoded in H.264, which is the format the editor asks for. The encoding is how the video is stored inside the file. If you're unsure, choose H.264 when you export or convert your video.
Then open a task in the editor and select a frame (a screen in your study).
- In the toolbar, open
Mediaand clickVideo. - In the
Video Setupwindow, checkAutoplay video on frame startto play the video when the screen appears. - To move participants on when the video finishes, check
Jump to next frame when video ends. Otherwise, uncheck it. - Keep
Assign video(s) from file browserselected and clickNext. - Choose your file.
Labvanced creates events for the options you checked. An event is a rule that makes something happen at a certain moment. To open and change these events later, use the Events panel in the task editor.
Example 1: video that runs by itself. In the Video Control sample, participants read a short introduction and click
Nextto reach the video screen.
When the screen appears: the video starts without a click. In the sample, this event is calledStart video on frame start.
When the video ends: the study moves on without a click. This event is calledVideo ended next frame.
To see how the sample is built, open its page and click Import to save a copy to your account. See Importing Templates for help. In your copy, open the task, select the video screen and open the Events panel.
Adjust the video
Select the Video object to see its settings in the Object Properties panel.
Volume: a number from0(silent) to1. Participants' own device volume also affects how loud it is.Show Media Controls:gives participants play and pause buttons and a progress bar. It's on by default, so uncheck it if they shouldn't control the video.
Example 2: video without player controls. In the same sample, participants see the video with no play or pause buttons and no progress bar.
Show Media Controls:uncheckedVolume:1
Load videos before the study starts
Preloading downloads your media files before the study begins. It works the same way for videos and sounds. See how to check the preloading setting.
Good to know
- An
.mp4ending isn't enough. An MP4 file can use another encoding. If a video doesn't play, convert it to H.264 and upload it again. - Keep files small. Labvanced downloads the whole video before playing it, so large files take longer, especially on slow connections.
- Test on your participants' devices. Some devices and browsers, including those on iPhones and iPads, restrict videos from playing automatically. Test your study on the devices and browsers they'll use.
- Recording is separate. The
Videoobject plays videos. To record participants, use the Video Recording Object.
FAQ
How do I use a different video on each trial?
Video object, click the folder icon in Object Properties, select your files and click Assign. Under the trial options, Create as many trials as files selected. gives each file its own trial, and replaces the existing trials in the selected condition. See how to generate trials by adding stimuli. To arrange screens before and after the video, see the Trial Timeline. How do I assign files to conditions?
Assign window can also assign files to conditions or factor levels. See the assignment options. How do I randomize the order?
Random order by default. To check, find Randomizations in the left panel of the task editor, click Settings and look at Trial Order. To limit how many trials from one condition appear in a row, use Limit Successive Repetitions under Condition Order. See randomization settings. How do I know which video and condition a participant got?
Trial_Id and Condition_Id for each trial, and also records factors that have two or more levels. To save the file name too, add an event with a Frame Start Trigger and a Set / Record Variable Action. Save the value to a new variable, such as video_file. For the value, choose Object Property, then your Video object and Filename.