Can I embed and play MP3s in a blog under AEM?

Avatar

Avatar

davemc1

Avatar

davemc1

davemc1

14-04-2020

IS there some nifty trick or something to get embedded MP3 (audio) to play within our blogs? 

 

thanks,

davemc

AEM blog blog MP3 player
View Entire Topic

Avatar

Avatar

Nikhil-Kumar

MVP

Avatar

Nikhil-Kumar

MVP

Nikhil-Kumar
MVP

20-08-2020

@davemc1 There are two ways to it:

1. You can customize the DAM asset workflow for mp3 audio files.
2. Try using following snippet in your HTML component:

<figure>
<figcaption>Listen to the Music:</figcaption>
<audio
controls
src="/media/examples/music.mp3">
Your browser does not support the
<code>audio</code> element.
</audio>
</figure>