oTree Forum >

Playing MP3 before Experiment on HTML page

#1 by JuergenMR

Hi everyone,

is it possible to play an MP3 file on the instructions page (or an extra page)?

I have tried this - I get the "player" on the HTML page but I do not get sound. It seems like I am rather close...any ideas?

<audio controls autoplay>
  <source src="file_example_MP3_1MG.mp3">

#2 by Chris_oTree

See the documentation on static files.

#3 by JuergenMR

perfect! thanks! Works perfectly

<audio controls autoplay>
  <source src="{{ static 'file_example_MP3_1MG.mp3' }}" >

Write a reply

Set forum username