Widget:Audio: Difference between revisions

343 bytes added ,  03:18, 2 August 2023
no edit summary
No edit summary
No edit summary
Line 16: Line 16:
}}
}}
</noinclude><includeonly><audio class="mejs__player" src="<!--{$url|validate:url}-->"
</noinclude><includeonly><audio class="mejs__player" src="<!--{$url|validate:url}-->"
controls preload></audio><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/6.0.3/mediaelementplayer.min.css" /><script src="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/6.0.3/mediaelement-and-player.min.js"></script><script>
controls preload></audio><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/6.0.3/mediaelementplayer.min.css" />
<style>
.mejs__overlay-button {
background-image: url("https://wiki.ekatrafoundation.org/mejs-controls.svg");
}
.mejs__overlay-loading-bg-img {
background-image: url("https://wiki.ekatrafoundation.org/mejs-controls.svg");
}
.mejs__button > button {
background-image: url("https://wiki.ekatrafoundation.org/mejs-controls.svg");
}
</style>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mediaelement/6.0.3/mediaelement-and-player.min.js"></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) {
}
}
});
});
</script></includeonly>
</script>
</includeonly>