This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
en:create:frameset [21.09.2015 12:22] – mkgkiel | en:create:frameset [27.11.2020 21:14] – [Prepare Frame content] sophia.schauer | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ===== Play music along several pages ===== | + | ====== Play music along several pages ====== |
SoSci gives you the opportunity to present music or videos along the whole qustionaire by means of a frameset. How this works is shown below.((Thanks to [[sbrand@students.uni-mainz.de|Sebastian Brand]] for this chapter.)). | SoSci gives you the opportunity to present music or videos along the whole qustionaire by means of a frameset. How this works is shown below.((Thanks to [[sbrand@students.uni-mainz.de|Sebastian Brand]] for this chapter.)). | ||
Line 19: | Line 19: | ||
< | < | ||
<meta http-equiv=" | <meta http-equiv=" | ||
- | < | + | < |
</ | </ | ||
< | < | ||
- | <frame src=" | + | <frame src=" |
- | <frame name="Beispielframe"> | + | <frame name="Exampleframe"> |
</ | </ | ||
</ | </ | ||
Line 36: | Line 36: | ||
* Using the command | * Using the command | ||
- | After creating and working on the file it can be loaded up in **pics and media** to the project directory. The result will be visible by attaching ''/ | + | After creating and working on the file it can be loaded up in **pics and media** to the project directory. The result will be visible by attaching ''/ |
**Important**: | **Important**: | ||
Line 53: | Line 53: | ||
</ | </ | ||
< | < | ||
- | <audio id=" | + | <audio id=" |
<source src=" | <source src=" | ||
</ | </ | ||
Line 62: | Line 62: | ||
Here the audio file was attached by ''< | Here the audio file was attached by ''< | ||
- | The music file („EXAMPLE.MP3“) has to be uploaded to SoSci Survey likewise. Setting the player’s pixel size to zero lets the player disappear leaving the music playing | + | The music file („EXAMPLE.MP3“) has to be uploaded to SoSci Survey likewise. Setting the player’s pixel size to an absolute negative range (e.g. -9999px) |
+ | **Tip:** To determine the name of the audio file, go to Pictures and Files in the questionnaire menu of your project, there you will find the full name, which you can simply copy (usually the name under which you uploaded the file). | ||
===== Load frame contents ===== | ===== Load frame contents ===== | ||
- | Probably the audio file is not meant to play from the beginning but rather start at some point later on. For this purpose copy the file '' | + | Probably the audio file is not meant to play from the beginning but rather start at some point later on. For this purpose copy the file '' |
<code html> | <code html> | ||
<script type=" | <script type=" | ||
<!-- | <!-- | ||
- | top.Beispielframe.location.href = " | + | top.Exampleframe.location.href = " |
// --> | // --> | ||
</ | </ | ||
Line 87: | Line 88: | ||
<script type=" | <script type=" | ||
<!-- | <!-- | ||
- | top.Beispielframe.location.href = " | + | top.Exampleframe.location.href = " |
// --> | // --> | ||
</ | </ | ||
Line 95: | Line 96: | ||
===== Limitations ===== | ===== Limitations ===== | ||
- | * During | + | * While loading the frame set it is not possible to transmit variables (e.g. reference or serial number) to the questionaire, |
* Using this solution fading the music is not feasible. It is cut out abruptly loading the empty file. | * Using this solution fading the music is not feasible. It is cut out abruptly loading the empty file. |