Jump to content

Textformatter Audio Embed


teppo
 Share

Recommended Posts

Needed a really simple solution to embed audio files within page content and couldn't find a module for that, so here we go. Textformatter Audio Embed works a bit like Textformatter Video Embed, converting this:

<p>https://www.domain.tld/path/to/file.mp3</p>

Into this:

<audio controls class="TextformatterAudioEmbed">
    <source src="https://www.domain.tld/path/to/file.mp3" type="audio/mpeg">
</audio>

The audio element has pretty good browser support, so quite often this should be enough to get things rolling ?

  • Like 16
Link to comment
Share on other sites

  • 8 months later...

The TextformatterSoundmanager https://processwire.com/modules/textformatter-soundmanager/ works well for embedding audio files, but uses shortcodes.

This module is a good choice for simple things where you wouldn't need a playlist or control the skin etc, like you can do with SM2 module.

You could also skin the audio element using something like plyr.io, which is a nice replacement for the default player. MediaElement.js also works in a similar way.

I can see using this module for quick and simple applications though.

  • Like 1
Link to comment
Share on other sites

  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...