Widget:AudioPlayer: Difference between revisions

From The Midnight Wiki
No edit summary
No edit summary
Line 2: Line 2:


== Sample result ==
== Sample result ==
{{#widget:{{PAGENAME}}
 
|mp3=mp3
|ogg=2601871540
}}
</noinclude>
</noinclude>


<includeonly>
<includeonly>
 
<div class="player"><audio>
<script>
    script.onload = function () {
GreenAudioPlayer.init({
selector: '.audio-wrapper',
stopOthersOnPlay: true
});
</script>
<script>
GreenAudioPlayer.init({
selector: '.audio-wrapper-2',
stopOthersOnPlay: true
});
};
    </script>
<html>
<div class="audio-wrapper">
<audio class="mediacenter">
<source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg">
<source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg">
<source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg">
<source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg">
</audio>
</audio></div>
</div>
</html>
</includeonly>
</includeonly>

Revision as of 21:54, 24 April 2022


Sample result