PennController for IBEX › Forums › Support › resize video › Reply To: resize video
May 16, 2020 at 3:08 pm #5264
I hope you don’t mind, I moved your question to the Support section of the forums, as I think it’s more appropriate
How about using the .size and .play commands, like this?
newTrial( newButton("Watch video").print().wait().remove() , newVideo("https://upload.wikimedia.org/wikipedia/commons/4/4f/CanoeTacking.webm") .size("80vw","auto") .print() .play() .wait() )
Note that most browsers will require a user interaction to happen on the page for play to automatically start the video, hence my Watch video button (but any prior interaction in your experiment will do)