11/6/2022 0 Comments Simple html5 audio playerThis could just be implemented by the developer of an extension. Custom Extensionsįor custom extensions it works also the same as for articles, but the extension has to trigger the onContentPrepare event. Custom HTML Moduleįor the custom HTML module it works the same as for articles, but you need to activate the option Prepare Content in the module settings. In articles you could simple use the shortcode as follows: In the Joomla core this are among others articles and the custom HTML module. The HTML5 Audio plugin works in all extensions that support the onContentPrepare event. If you need more functionality, I used the howler.js library and found it simple and useful. The base path prefixes the path given in each individual shortcode. var audio new Audio ('audiofile.mp3') ay () This uses the HTMLAudioElement interface, which plays audio the same way as the
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |