Widget:Audio: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 28: Line 28:
}
}
</style>
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/6.0.3/mediaelement-and-player.min.js"></script><script>
<script src="https://wiki.ekatrafoundation.org/index.php?title=MediaWiki:Mediaelement-and-player.min.js&action=raw&ctype=text/javascript"></script><script>
var player = new MediaElementPlayer( document.querySelector('.mejs__player'), {
var player = new MediaElementPlayer( document.querySelector('.mejs__player'), {
success: function(mediaElement, originalNode, instance) {
success: function(mediaElement, originalNode, instance) {

Revision as of 04:08, 2 August 2023

This widget allows you to add HTML5 Audio Media to your wiki page. For video files see the Video page.

To insert this widget, use the following code:

{{#widget:Audio
|url=https://wiki.ekatrafoundation.org/images/4/4d/Sample2.mp3
}}

Parameters

  • url - URL of the audio file

Sample result