For Play/ Pause:
jQuery('video').trigger('play');
jQuery('video').trigger('pause');
For full screen check here
Hi! Did you happen to figure out the code to do this? Thank you!
Hi!
I'm trying to figure this out too - I would also like my video to autoplay while having all of the controls disabled.
My original code to embed the video without including any autoplay or invisible divs looks like this:
If anyone could help me out with this, that would be absolutely amazing. I'm very new to coding and have been trying to figure this out for days.
You need to do two things:
1. Add autoplay to your YouTube.com URL. Copy the entire URL and this at the end. The "&controls=0" hides the controls, but people can still click on the video to pause it.
?autoplay=1&controls=0
2. Next you'll need to use JS to disable clicks on your question.
document.getElementById(this.questionId).style.pointerEvents = "none";
Here's a working demo: https://iima.au1.qualtrics.com/jfe/form/SV_a59xW4WRdTsd4vH
https://community.qualtrics.com/XMcommunity/discussion/comment/32263#Comment_32263Hi ahmedA,
Thanks for the really simple and understandable coding. I tried the working demo but the video just could not start playing.
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.