This translation is older than the original page and might be outdated. See what has changed.
Translations of this page:
 

This is an old revision of the document!


Media Files in Questionnaires (Audio, Video, Documents)

Online questionnaires distinguish themselves from printed questionnaires, according to the methodological literature, because, among other things, they can incorporate audiovisual material. Few research projects currently make the effort to produce media content, but if you would like to include a document (such as a PDF), an audio file or a video in your questionnaire, this chapter will help you do so.

Important: Most media files (images, music, sounds, videos, and texts) are subject to the copyright. That means, you must not publish (e.g., upload) or modify these files without a written consent by the copyright owners. This as well applies to materials, that can be consumed free of charge (e.g., YouTube videos) and to materials modified by you (e.g., cutted videos). In case of a copyright infringement you risk an expensive cease-and-desist order (costs a few hundret or some thousand Euros) and deletion of the uploaded files during data collection.

Note: Pictures in internet-appropriate formats (see Images) can be uploaded in the standard way at www.soscisurvey.de. Due to frequently lacking awareness of copyright violations, the server administrator must first approve uploaded media files.

Uploading media files

While questions and tests are saved directly to a database, images and media files must first be uploaded as separate files to a host server (Images and Media Files in the menu). There are two things to keep in mind when doing so:

  1. The files must be saved in an appropriate format. There are countless document formats (e.g. PDF, DOC, DOCX, ODT, TXT, RTF for text documents alone), but only very few are suitable for use in online questionnaires. Aside from the file size, a crucial factor is that all participants must be able to open the document – particularly with proprietary formats (e.g. Word DOC, Windows AVI, etc.), this is often not the case.
  2. By uploading, you are publishing the file on the internet, universally accessible to everyone. This is only permitted if you hold usage rights for the contents. This starts with text copyrights, extends to composition and performance in a piece of music, and extends well beyond the image rights for pictures and videos. If any persons are represented in the material, confidentiality rights must be respected as well. In short: Any time outside material (even as background music or only in excerpts) or representations of persons are used, written permission is required. Otherwise, a written reprimand may be issued. This can cost between several hundreds and multiple thousands or Euros.

Note: Capitalisation is critical in internet content. Uploading the file “Document.pdf” and then linking the file “document.pdf” will lead to errors.

Linking documents

Most text and image contents in a questionnaire are formatted as text elements with HTML and directly embedded. However, longer documents (such as multiple-page instructions) may need to be linked as a downloadable file. A widely-used file format is PDF.

PDF files can be created with Adobe Acrobat (if purchased) or with the freeware OpenOffice Writer or FreePDF.

Once a file is uploaded to the host server, it can be linked for download with the HTML tag <a>. Often (not always!) browsers will open PDF files in a new window rather than downloading them. The addition of target ensures that this occurs in a new browser window or tab.

<a href="document.pdf" target="_blank">Download file</a>

Note: Whether the PDF file is opened in the browser or downloaded depends on the browser, or rather, the participant’s settings, and can’t be controlled by the researcher.

Incorporating audio files

There are several file formats that are good for use online, particularly RealMedia (RMA) and Windows Media (WMA). However, both formats exclude a relevant proportion of participants. In contrast, virtually all internet users can now play Flash files. The open-source software EMFF is Flash-based and can play mp3 files. EMFF is a standard plug-in on the www.soscisurvey.de server.

Note: The solutions below will play the audio file on one specific questionnaire page. When clicking to the next page, it stops. If you need to bypass this restriction, please read Play music along several pages.

Simple embedding of an mp3

If an audio file is saved in mp3 format and uploaded to the host server, it can simply be dragged into the questionnaire like a text element (Compose Questionnaire). With the display settings Einstellungen, the user can determine how the EMFF Player should appear.

Enhanced embedding of an mp3

If additional functions are needed (such as playing the file automatically) or the file must be interchangeable (e.g. as a randomised stimulus), the EMFF code generator can be used to generate the appropriate HTML code to embed the file into the questionnaire. Subsequently, the path to the EMFF player must be adjusted twice (!) (../plugins/emff/, see code example below) and the HTML code must be saved as a text element (Text Elements and Labelling) and dragged into the questionnaire (Compose Questionnaire).

<object type="application/x-shockwave-flash" data="../plugins/emff/emff_standard.swf" width="110" height="34">
  <param name="movie" value="../plugins/emff/emff_standard.swf">
  <param name="FlashVars" value="src=audiofile.mp3&amp;autostart=yes">
</object>

Note: If EMFF is not present on a host server, the necessary flash files (SWF) can be downloaded from the EMFF homepage and uploaded to the user's project.

Embedding videos

Important: Those who have not looked into copyright laws often think public and free-access videos (such as those on YouTube) may be used in questionnaires without further consideration. This is incorrect. Copyright laws apply to such videos as well!

The special case of YouTube videos

Users who upload videos to YouTube (and similar platforms) transfer a whole series of usage rights to the platform. This can be very useful in survey studies because YouTube offers the possibility of embedding videos directly into external websites (such as your online questionnaire).

To do this, open the video on YouTube, click on the Share button, then Embed: Copy the HTML code into a text element (Text Elements and Labels) and drag it into the questionnaire (Compose Questionnaire). If necessary, replace http:// by https:// in the HTML code.

<iframe width="420" height="315" src="https://www.youtube.com/embed/WtR2m20C2YM" frameborder="0" allowfullscreen></iframe>

With this HTML code, a (mostly invisible) YouTube website is opened within the questionnaire and the YouTube player is loaded. The user does not have to upload the file, nor deal with copyright laws. In exchange, YouTube is permitted to blend their own advertisements into the video.

Warning: The advertising spots shown previously to the video by youtube will vary for every respondent. Therefore, directly embedding the YouTube video may cause severe methodological trouble. The only solution to this case is to get the (written) consent of the copyright owner, to upload the video to the survey project, and to embed this file.

Note: Browser will access www.soscisurvey.de via secured (encrypted) HTTPS protocol. Some browsers deny including content from non-encrypted sources via iframe. When including external content, make sure, this content is available via HTTPS. Also use the HTTPS URL.

Embedding videos via Flash

There is a series of video formats developed specifically for internet use (such as mp4, RealMedia, and Windows Media). However, these formats are usually tied to a particular platform (such as Windows) or require plug-ins which many participants won’t have installed. With direct embedding, it is also impossible to control whether they are displayed directly in the browser or linked for download.

Nearly all internet users have a Flash plug-in installed, however. Therefore, a good option is to transform the video for Flash and embed a Flash Player for the video into the questionnaire. This enables a large amount of control over the video display, and it will play for nearly all participants. The researcher should indicate in advance that the volume of the user’s computer should be turned up.

A helpful tool for this is the Free Video to Flash Converter. When installing this tool, the suggested toolbars can be deactivated/not installed, and the same applies to the included add-on software (e.g. TuneUp Utilities). The programme helps the user turn videos into Flash videos and to play them via the Internet:

  1. Start the application
  2. Add files
    1. Select the desired file (the programme supports many common file formats)
    2. Open
  3. Format
    1. “FLV”
    2. The pre-set “high quality” with 1 MBit/sec is a good starting point – yet, the image size and/or bit-rate may need adjusting.
  4. Many more options can be selected under Player, such as which buttons to show, etc.
  5. The box next to Show HTML sample file should be checked.
  6. Convert – this will take a while

The converter will save the Flash video (FLV) and the actual player to play the video (SWF file) in the target directory. In some cases a control file (XML) is included as well. The two or three output files should be uploaded to the survey project – the eventual HTML or CSS file in the target directory does not need to be uploaded. The video file (FLV) may not exceed 32 MB on the www.soscisurvey.de server.

After converting the video, a browser window with the necessary HTML code will open (if this window is closed by the user, it can be re-opened from the HTML file saved to the target directory by the programme). The relevant code is under Copy the code from the box below to your web page, and the <noscript> line can be adjusted as necessary -– it is displayed when JavaScript is deactivated and the video can’t be shown (see example below).

This HTML code is best saved as a text element (Text Elements and Labels). For the text element's Formatting, select “HTML code”. Finally, drag the text element into the questionnaire (Compose Questionnaire).

<object id="Object2" type="application/x-shockwave-flash" data="player_flv_classic.swf" width="480" height="360">
  <noscript>You browser does not support Flash and/or JavaScript.</noscript>
  <param name="movie" value="player_flv_classic.swf" />
  <param name="wmode" value="opaque" />
  <param name="allowScriptAccess" value="sameDomain" />
  <param name="quality" value="high" />
  <param name="menu" value="true" />
  <param name="autoplay" value="false" />
  <param name="autoload" value="false" />
  <param name="FlashVars" value="configxml=FlickAnimation.xml" />
</object>

Tip: This Flash application, playing the FLV files, supports a lot of parameters: DVD Video Soft: Multi Flash Player Settings

Technical hurdles

Regardless of whether audio files or videos are embedded following the directions above or directly from an external provider (e.g. YouTube), it can never guarantee that the participant can actually see the media file.

All options listed above (including YouTube) only work if the participant has a halfway up-to-date Flash Player. Flash is the most common media plug-in for browsers, but a relevant proportion of participants (depending on target population, 5-20%) will not have it installed. In addition, some participants use a Flash-Blocker to hide moving advertisements on some websites.

The solution to this problem is relatively simple: embed a short test video/audio clip on the first page of the questionnaire. The participants can then be asked to test the display in advance. I fit does not work properly, they should …

  • check if the speakers are turned on,
  • possibly install the up-to-date Flash Player (include a link to the download page) and/or
  • temporarily disable an Flash blocker.

Tip: Optionally, some information (such as a number) can be hidden in the media file by displaying or recording it. Only users who enter this information correctly into a text box can continue to the questionnaire (this is then checked via filter on the next page of the questionnaire).

Of course, a series of other problems can also prevent the display of media. This can start with the fact that the participant is using a hopelessly out-of-date browser (e.g. Internet Explorer 5) and extend well beyond difficulties playing the file (a frighteningly small proportion of internet users comprehends the term “play button”). It has to be accepted that under some circumstances, a portion of the participants in an online questionnaire simply cannot play the files. However, with the instructions above, this portion should be reduced to very few percent.

Finally, most of the time, it is impossible to control whether the participant has actually watched/listened to the complete file. This would require a special play-software to transmit this information to SoSci Survey (which does not currently exist). For those who do not wish to code their own software, the following options should work:

  • Ask the participant if he/she has watched/listened to the complete file,
  • check the time spent on each page during data analysis (Dwll Times) or
  • only display the Continue button after a short while (Timer: Display Next Button after Defined Time). If you allow a Back button, do not set this time interval too long.
en/create/media.1440706412.txt.gz · Last modified: by admin
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
Driven by DokuWiki