Hi,
You’re right, I should probably add the option to pass "loop" to the play command. In the meantime, here’s a script that’ll do what you want:
newTrial(
newVideo("turbine", "https://upload.wikimedia.org/wikipedia/commons/8/8f/Active_Lift_Turbine.ogv")
.print()
,
newVar("loop", true),
newTimer("loop", 1)
.callback( getVar("loop").test.is(true).success(
getVideo("turbine").play().wait()
,
getTimer("loop").start()
) )
.start()
,
newKey("Enter").wait()
,
getVar("loop").set(false),
getVideo("turbine").stop()
,
newButton("Next").print().wait()
)
Let me know if you have questions
Jeremy