Logo WIQQI
Pflegen. Wissen. Teilen.
Marzipano: Embed audio

Marzipano: Embed audio

Audio files can be embedded as <audio controls> in info points in Marzipano.

Thank you for the inspiring question about how audio can be embedded. This is possible by embedding the following arguments in the "text:" area of the info hotspot. The representation appears as follows:

  • Create directory "audio" (in the same path as index.html. On the same level as the folders "img", "tiles" and "vendor")
  • Copy the audio file to the "audio" folder (example: "FILENAME.WAV", "FILENAME.MP3", "FILENAME.OGG")
  • Add the audio argument in the "text:" area depending on the file type:

MP3 files:

<audio controls><source src=’audio/FILENAME.MP3′ type=’audio/mp3′>Your browser does not support the audio element.</audio>

WAV files:

<audio controls><source src=’audio/FILENAME.WAV‘ type=’audio/wav‘>Your browser does not support the audio element.</audio>

OGG files:

<audio controls><source src=’audio/FILENAME.OGG‘ type=’audio/ogg‘>Your browser does not support the audio element.</audio>


The complete code for the info hotspot is:

 { „yaw“: 0.896662903212087, „pitch“: -0.226620095063639, „title“: „Telemedizinische Voranmeldung<br />„, „text“: „<audio controls><source src='audio/FILENAME.WAV' type='audio/wav'>Your browser does not support the audio element.</audio>„ }, 
© 2020 WiQQi