I am trying to embed a video into qualtrics, such that the participant cannot interact with the video player, and it autoplays. This setup currently works, as I use the following HTML code: <iframe height="800" src="https://www.youtube.com/embed/Crhpyg_a5XY?autoplay=1&controls=0&showinfo=0&loop=1" style="pointer-events: none" width="800"></iframe> However, for another video, I would like to change the playback speed to 1.5x, again without the participant having to do so manually. I tried to use the following JavaScript code in the question, but it did not work. Qualtrics.SurveyEngine.addOnload(function() { // Function to set playback rate via YouTube API function setPlaybackRate() { var iframe = document.getElementById('video'); iframe.contentWindow.postMessage('{"event":"command","func":"setPlaybackRate","args":[1.5],"id":1}', '*'); } }); How should I go about forcing the playback speed to 1.5x? Thanks! |