Skip to content
Grav 2.1 is out: every page speaks Markdown. Read the announcement →

How to insert HTML5 audio?

Started by Muut Archive 11 years ago · 3 replies · 539 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 2278 9 years ago
Archive · by Muut Archive, 9 years ago
2 1496 9 years ago
Archive · by Muut Archive, 9 years ago
2 4745 9 years ago
Archive · by Muut Archive, 9 years ago
1 3557 9 years ago
Archive · by Muut Archive, 9 years ago
3 1620 9 years ago