Widget:AudioPlayer: Difference between revisions

From The Midnight Wiki
No edit summary
No edit summary
 
(28 intermediate revisions by 2 users not shown)
Line 2: Line 2:


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


<includeonly>
<includeonly>
 
<html>
<script>
<iframe src="https://embed.beatport.com/?id=4711460&type=release" width="100%" height="362" frameborder="0" scrolling="no" style="max-width:600px;"></iframe>
    script.onload = function () {
<html>
GreenAudioPlayer.init({
selector: '.audio-wrapper',
stopOthersOnPlay: true
});
GreenAudioPlayer.init({
selector: '.audio-wrapper-2',
stopOthersOnPlay: true
});
};
    </script>
 
<div class="audio-wrapper">
<audio class="mediacenter">
<source src="<!--{$ogg|escape:'urlpathinfo'}-->" type="audio/ogg">
<source src="<!--{$mp3|escape:'urlpathinfo'}-->" type="audio/mpeg">
</audio>
</div>
</includeonly>
</includeonly>

Latest revision as of 22:50, 13 February 2025


Sample result