Skip to content
Grav 2.0 is officially stable. Read the announcement →
Archive

How to insert HTML5 audio?

Started by Muut Archive 11 years ago · 3 replies · 431 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 1327 9 years ago
Archive · by Muut Archive, 9 years ago
2 921 9 years ago
Archive · by Muut Archive, 9 years ago
2 4050 9 years ago
Archive · by Muut Archive, 9 years ago
1 2928 9 years ago
Archive · by Muut Archive, 9 years ago
3 1107 9 years ago