Hello all thanks you first to read my topic.
I use this free plugin: https://www.jqueryscript.net/demo/Minimal-jQuery-Cross-platform-Audio-Player-MINImusic-Player/js/musicplayer.js
- I need to trigger the button to stop or pause the audio .
<input id=“clickMe” type=“button” value=“clickme” onclick=“javascript:pause();” />
-
And event function when the audio ended .
-
And how to get current time also.
I tried several things but without result
i use this code
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js"></script>
<div class="example">
<ul class="playlist">
<li data-cover="http://digital.akauk.com/utils/musicPlayer/data/John-Wesley.jpg" data-artist="John Wesley"><a
href="http://digital.akauk.com/utils/musicPlayer/data/Tequila 10 Seconds.mp3">Tequila 10 Seconds</a></li>
</ul>
</div>
<script>
$(".example").musicPlayer({
elements: ['artwork', 'information', 'controls', 'progress', 'time', 'volume'],
onPlay: function () {
},
onPause: function () {
},
onStop: function () {
},
onFwd: function () {
},
onRew: function () {
},
volumeChanged: function () {
document.getElementById("myspan").textContent="newtext";
},
progressChanged: function () {
},
trackClicked: function () {
},
onMute: function () {
},
});
</script>
please if some one can give help