Hello!
In my oTree app, I want to show a short video (4 seconds long) with the autoplay, mute and loop attributes.
The video is an MP4 file, saved in the static folder.
It works fine on most web browsers, yet it does not work on Safari (when deployed on heroku).
Here is my code in the template:
<video height="300" muted autoplay loop>
<source src="{{ static 'video1.mp4' }}"/>
</video>
I tried the next code as well (in different combinations), but it still does not work in Safari:
<video height="300" muted autoplay loop playsinline src="{{ static 'video1.mp4' }}">
<source src="{{ static 'video1.mp4' }}" type="video/mp4"/>
</video>
What should I do?
Thank you very much!
Itamar