====== Play music along several pages ====== SoSci Survey offers the possibility to display music or a video over an entire questionnaire using a frameset. One challenge is that modern browsers do not simply play music automatically -- so a little JavaScript is required, and the music may also start earliest when the first page is submitted. **Note:** Assume that respondents have their speakers turned off, they need to put on headphones first, or their smartphone is on mute. Point out the audio output at an early stage and offer the opportunity to test the audio output in the questionnaire. ===== Define a frameset ===== The first step is to create a frameset. Click [[http://wiki.selfhtml.org/wiki/HTML/Frames|SelfHTML: Frames]] to see what a frameset is. Loosley speaking a frameset is a table, which devides a website into areas, whereas the contents can be worked on individually. To generate a frameset in SoSci Survey a text file has to be created on the desktop. Name it e.g. “start.html”. **Important:** It is crucial saving the file as a pure ASCII-text. Due to this it is necessary to use a text editor (e.g. [[https://notepad-plus-plus.org/|Notepad++]], [[http://www.scintilla.org/SciTE.html|SciTE]] or Windows note pad) but __no__ word processor such as MS Word or OpenOffice/LibreOffice. **Important:** Take care that the file extension is changed respectively, converting the former text file into an html-file. You can download the contents of this file directly. Questionnaire ===== Content for the frameset ===== The frameset refers once to the questionnaire (‘'index.php’') and once to a file ‘'music.html’'. You will also need this file. Audio This file contains an ‘’