Version 2.1 Released
Although some feedback has been "give us more!" such as audio controls, this extension is meant to be an unobtrusive, "fits inline with your text," type of minimal audio player. And so, I've gone even more minimal for 2.0. That's right folks. I've doubled down on minimalism. 😆 If you want audio players with controls, use my audio BBCode extension. Or, you can even use both. Sometimes you might want to play a sound inline with this extension, and sometimes you might want to use the BBCode to produce a full blown player.
What's new in 2.0 (Technically already 2.1 now)? 😀
- Reduced CSS drastically (Yay for lightweight!) 🥳
- Uses Font Awesome icon instead of png image play button (Yay for fitting in even more with Flarum!) 🆒
Screenshot
Usage
Simply paste your audio URL into a post. Or, create a link to an audio URL using BBcode or Markdown. For example (markdown):
[Song Name](https://website.com/song.mp3)
Known Issue
The player will not appear immediately after you edit a post. But, it will appear any other time.
Install
composer require zerosonesfun/flarum-ext-sm2
Update
1) composer update zerosonesfun/flarum-ext-sm2
2) Deactivate and reactivate the extension in your admin. This refreshes important asset files.
3) Go to your dashboard, click tools, click clear cache.
4) Clear your browser cache, and any other caches like Cloudflare, if applicable.