Skip to content
● Grav 2.2 is out: 2x faster cold starts and 96% less memory on big sites. Read the announcement →

How to insert HTML5 audio?

Started by Muut Archive 11 years ago · 3 replies · 572 views
11 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.

11 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!

11 years ago

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

Suggested topics

Topic Participants Replies Views Activity
Archive · by Deleted User, 9 years ago
0 2619 9 years ago
Archive · by Muut Archive, 9 years ago
2 1724 9 years ago
Archive · by Muut Archive, 9 years ago
2 5024 9 years ago
Archive · by Muut Archive, 9 years ago
1 3852 9 years ago
Archive · by Muut Archive, 9 years ago
3 1830 9 years ago