Peter Stuifzand

HTML5 Audio

Today I was working on river again and after I added enclosure support I wanted to add a way to play audio files. The first thing I thought was, we can I find an inline mp3 player. And while I went to Google another idea popped into my mind: HTML5 audio.

So I added the tag:

<audio src="url" />

And without much more effort I had working audio playback in my river. How easy is that?

© 2023 Peter Stuifzand