Widget:Audio: Difference between revisions

From Ekatra Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
|url=https://wiki.ekatrafoundation.org/images/4/4d/Sample2.mp3
|url=https://wiki.ekatrafoundation.org/images/4/4d/Sample2.mp3
}}
}}
</noinclude><includeonly><script src="https://cdnjs.cloudflare.com/ajax/libs/html5media/1.1.5/html5media.min.js"></script><audio src="<!--{$url|validate:url}-->"
</noinclude><includeonly><script src="https://cdn.jsdelivr.net/gh/sh20raj/AudiPlay/audiplay.min.js"></script><audio class="audiplay" src="<!--{$url|validate:url}-->"
controls preload></audio></includeonly>
controls preload></audio></includeonly>

Revision as of 19:04, 1 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