How do I get an MP3 file to autoplay in Qualtrics?

erinherinh PortsmouthCommunity Member Qubie ✭

How do I get an MP3 file to autoplay in Qualtrics?


Upon searching this question, I found many different forms of code which could be used to make this work. However, upon trying all of the basic ones, none of them worked. I then found that I could embed an audio recording from SoundCloud, which should allow me to hide any visuals of the recording whilst allowing it to autoplay.
This is the code that I used:

This partially works. It allows the recording to play, but the user has to press a play button to make it work, alongside there being a very large, very orange SoundCloud logo at the top of each page I have put a recording on.
I then changed the code slightly so it looked like this:

This got rid of the large orange logo, but appeared to delete the recording in the process.

Is there any other way of getting an MP3 recording to autoplay in Qualtrics or has this function been removed?

Thanks in advance.


  • nrvonogdnrvonogd IndianapolisCommunity Member Qubie ✭
    edited November 2019

    Hi there @erinh,

    I have a solution for you (though I can't see the code you put in). You probably need to wrap it in back ticks.

    Basically - I uploaded an MP3 file to a library and then loaded into the survey using the rich content editor and the insert media function. Once this was done, I went into the HTML view and added the autoplay attribute in the HTML view code:

    <audio class="qmedia" controls="true" height="40" preload="auto" width="320" autoplay=true><source src="" type="audio/mp3" /><embed class="qmedia" flashvars="file=;width=320&amp;height=20&amp;type=mp3&amp;autostart=false" height="20" pluginspage="" src="/WRQualtricsShared/Flash/flvplayer.swf" type="application/x-shockwave-flash" width="320" wmode="transparent"></embed></audio>

    The key part was adding autoplay=true to the end of the <audio> section to add the autoplay attribute.

    Please note that in preview mode -it'll play twice, because you get a mobile version and a desktop version.

    If this works for you please mark this as the accepted answer :)

Sign In to Comment