Hi everyone. I am new to qualtrics, but I was hoping to use it for some survey questions. I want to be able to display a video from a playlist of several (hundred) and display the same question per video (preferably by the same page) and receive responses by some video ID.
I was looking into methods, and the best method I can think of is having to place each video in manually. Is there anyway I can do a loop and merge or just some method that I can automatically extract a video from either a youtube playlist or dropbox folder until all videos are played?
We have ~400 videos, so manually adding the ID tags for each seems tedious.
Thank you for your time!
Hi Toonkirby,
there are certainly a few ways how you could organize this. One of the central questions, though, is: how many videos a respondent should see? The second question is how do you select the videos: randomly or is there any selection based on previous answers?
In one way or the other, you definitely need to prepare the list with the ids. However this depends on the answers to the questions above
Best regards
Rudi
https://community.qualtrics.com/XMcommunity/discussion/comment/46712#Comment_46712What if only 1 video needed to be (potentially randomly) selected from a google drive folder based on embedded data (an ID number) that would match the ID#?
Hi TracyRad,
basically, this wouldn't change the basic setup.
first question is: should the answers be collected in one question or for each video in a separate question?
What I would do is this.
first, create embedded data fields or set a multi-select question randomly (video links in the answer options)
second selected one according to your requirement
store the the name of the video in an embedded data field shownVideo_Name and the link in shownVideo_link
and then ask whatever questions you want for the selected video
Hope this helps you
Best regards
Rudi
https://community.qualtrics.com/XMcommunity/discussion/comment/50925#Comment_50925Hi Rudi,
that does help a lot! I really appreciate you responding to this old thread I didn't create also :)))
to add, do you know if each video needs to be labeled as the file url and each video needs to be included as a unique embedded data, or can there be one single embedded data with a url to a folder of videos and it just selects the filename that corresponds to the id?
I'm doing this:
for the embedded data: mp4url = (my url will go here) /${e://Field/id}.mp4
in the question:
the problem is I think I definitely can't do this very efficiently using the qualtrics library, the urls that I see don't correspond to the file names at all!
Hi Tracy,
this should work. Naming i.e labelling the videos strikes me personally as a good idea considering you most likely need to work with the data and hence it seems easier to work with names than having the urls only. the easiesest way to achieve this would using a dictionary
dicFileName = {
"file_url_1": "filename1",
......
}
then you could say.
let shownFilename = dicFileName[shownFileUrl]
and write the shownfilename back into your embedded data ;-)
Best regards
Rudi
https://community.qualtrics.com/XMcommunity/discussion/comment/50928#Comment_50928I am a little lost now, but maybe because this is now over my head.
Is this something that I could write in the survey design header OR in the question where the file is being called?
***Edit --- I am a little confused on what code you are using because there aren't dictionaries in javascript, but I know i could do something like this:
var object = { "key": "value"}
So, are there Filename objects specific to Qualtrics? I can't find it in the API documentation or anything about objects in qualtrics, unless you were just giving me an example with your own names before they are defined as variables.
Hi Tracy, good morning
considering your questions I believe this isn't at all above your head.
actually yes, what I referred to as a dictionary is an object. But since you use it for looking up something I call these dictionaries
Yes, you can place the script either in the header or in a question's JavaScript tap. However, mind that the question needs to be shown in order to run your script.
And no, the object isn't specific to Qualtrics but, in my opinion, itmakes your Qualtrics life so much more comfortable
BEst regards
Rudi
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.