How to force a video to load completely before play? | XM Community
Skip to main content
Solved

How to force a video to load completely before play?

  • August 17, 2020
  • 1 reply
  • 171 views

Hi, I am creating an experiment in which participants must watch films and hit the space bar at certain times. I have managed to disable controls of the video and register the space bar presses. However, as I am interested in the timing of the button presses I want to prevent the video from having to stop to buffer. Is it possible to add custom code to force the video to be loaded completely before play?
I am hosting the videos on server of my own, as I assume that will give me the most flexibility.
Thanks for any advice!


Best answer by cshall

Attached is the code we ended up using
Forum Post General Fix.txt

1 reply

  • Author
  • Answer
  • August 18, 2020

Attached is the code we ended up using
Forum Post General Fix.txt