Widget:Audio: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 16: Line 16:
}}
}}
</noinclude><includeonly><div class="wikiaudioplayer"><audio class="mejs__player" src="<!--{$url|validate:url}-->"
</noinclude><includeonly><div class="wikiaudioplayer"><audio class="mejs__player" src="<!--{$url|validate:url}-->"
controls preload></audio></div><link rel="stylesheet" href="https://wiki.ekatrafoundation.org/mediaelementplayer.min.css" />
controls preload></audio></div><link rel="stylesheet" href="https://wiki.ekatrafoundation.org/index.php?title=MediaWiki:Green-audio-player.min.css&action=raw&ctype=text/css" />
<script src="https://wiki.ekatrafoundation.org/index.php?title=MediaWiki:Green-audio-player.min.js&action=raw&ctype=text/javascript"></script><script>
<script src="https://wiki.ekatrafoundation.org/index.php?title=MediaWiki:Green-audio-player.min.js&action=raw&ctype=text/javascript"></script><script>
GreenAudioPlayer.init({
GreenAudioPlayer.init({

Revision as of 18:10, 9 October 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