You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thanks for this project it's very useful for those who doesn't have the advanced knowledge of javascript. I have a question i'd be appreciated if you can answer. Im using a code like this to start the music:
function musicPlayer(music_name, music) {
var iconImage = null;
AP.init({
container: '#player', //a string containing one CSS selector
volume: 0.7,
autoPlay: true,
notification: true,
playList: [{
'icon': iconImage,
'title': music_name,
'file': music
}]
});
}
it starts the music perfectly but there is an issue. I can't start another music with another button(the same button code with above but contains another mp3 file). What i wanna do is when a music runs on player, i wanna be able to change it with clicking on another button. The code above cannot do that.
The text was updated successfully, but these errors were encountered:
Hi, thanks for this project it's very useful for those who doesn't have the advanced knowledge of javascript. I have a question i'd be appreciated if you can answer. Im using a code like this to start the music:
<button onclick="musicPlayer('Test','test.mp3');" class="btn_ "><i class="fa fa-play-circle " id="display-buton "></i><img src=" {% static 'photos/..jpg' %} " alt="img" class="img" ></button>
musicPlayer contains these codes:
it starts the music perfectly but there is an issue. I can't start another music with another button(the same button code with above but contains another mp3 file). What i wanna do is when a music runs on player, i wanna be able to change it with clicking on another button. The code above cannot do that.
The text was updated successfully, but these errors were encountered: