Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

How to insert HTML5 audio?

Started by Muut Archive 12 years ago · 3 replies · 633 views
12 years ago

I tried to get HTML5 audio working, but no luck so far.
I inserted in .md file text area:
<audio controls>
<source src="song1.ogg" type="audio/ogg">
<source src="song2.mp3" type="audio/mpeg">
</audio>
The Songs are in this folder. The audio player pops up for a very short time... and fades out quickly.

12 years ago

I'm sorry, my src linked to the root folder. The audiofile was in pages _services folder.
I put the file in the root... and now it works!

12 years ago

ok cool, I guess the issue is no longer needed! thanks.

Suggested topics

Topic Participants Replies Views Activity
Archive · by Muut Archive, 10 years ago
1 672 1 week ago
Archive · by Deleted User, 9 years ago
0 3043 9 years ago
Archive · by Muut Archive, 9 years ago
2 1983 9 years ago
Archive · by Muut Archive, 9 years ago
2 5336 9 years ago
Archive · by Muut Archive, 9 years ago
1 4134 9 years ago