1. Create 'cond' and 'i' embedded data elements in the survey flow (make sure they are on the top).
  2. On a question before you display videos, copy this JavaScript into the editor, replacing the comment with an actual procedure for creating an array of condition numbers:
    var conditions=new array();
    //followed by to populate and randomize the array
    Qualtrics.SurveyEngine.setEmbeddedData("cond",conditions.toString());
    Qualtrics.SurveyEngine.setEmbeddedData("i","0");
  3. On the question that will display the videos, add this as the question text: ${e://Field/cond};${e://Field/i}
  4. On the question that will display the videos, copy this JavaScript into the editor, replacing the url with something more real. Instead of condition numbers, you could also create a random array of urls, and replace the whole src parameter with the condition variable.
    var qt = this.getQuestionTextContainer();
    var parts=qt.innerHTML.split(";");
    var index=Number(parts[1]);
    var conds=parts[0].split(",");
    var condition=conds[index];
    qt.innerHTML="<iframe src='https://fakeurl.com/?c="+condition+"' width=600 height=400 seamless=seamless>;</iframe>";
    Qualtrics.SurveyEngine.setEmbeddedData("i",String(++index));