Presenting full screen videos | XM Community
Skip to main content
Solved

Presenting full screen videos

  • May 6, 2019
  • 1 reply
  • 165 views

Hello, thank you for having me. I encountered a problem and thought you might be able to help me. I tried looking at the forums first and followed the instructions here, but I couldn't find a way to present videos in a full-screen mode. I use youtube videos and after I failed to use the javascript code (which I guess wasn't right), HTML5 code and Iframe code, I finally got here. Could you please help me? Thanks a lot in advance!

Best answer by jainshubham

Hi @Rakefet This is possible if you give your iframe a particular id as highlighted below under Iframe Properties > Advanced ! Once you have assigned an id, you can then use the below Javascript code for that question Qualtrics.SurveyEngine.addOnload(function() { var element = document.getElementById("iframe99"); if (element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if (element.webkitRequestFullScreen) { element.webkitRequestFullScreen(); } });

1 reply

jainshubham
QPN Level 2 ●●
Forum|alt.badge.img+3
  • QPN Level 2 ●●
  • Answer
  • May 17, 2019
Hi @Rakefet This is possible if you give your iframe a particular id as highlighted below under Iframe Properties > Advanced ! Once you have assigned an id, you can then use the below Javascript code for that question Qualtrics.SurveyEngine.addOnload(function() { var element = document.getElementById("iframe99"); if (element.mozRequestFullScreen) { element.mozRequestFullScreen(); } else if (element.webkitRequestFullScreen) { element.webkitRequestFullScreen(); } });