jQuery 1.3+
Include CSS And JS Files
- Include Files:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<link rel="stylesheet" href="css/stickyaudioplayerjquery.min.css">
<script src="js/stickyaudioplayerjquery.min.js"></script>
- Scope
var player; // declare it outside to use methods after
$(document).ready(function()
{
player = $.stickyAudioPlayer(
{
url:'http://tiendasdigitales.net/github/stickyaudioplayerjquery/bensound-goinghigher.mp3',
position:'bottom',
text:'Bensound - Going Higher - Music: http://www.bensound.com',
image:'http://tiendasdigitales.net/github/stickyaudioplayerjquery/images/cover.png',
maxWidth:1000
}
);
});
METHODS
player.changeAudio('myfile.mp3','song text','mycover.png'); Replace current song
player.setVolume(100); Change Player volume from 0 to 100
player.mute(); Mute audio
player.unmute(); Unmute Audio
player.pause();
player.stop();
player.play();
player.show(); Open Sticky Player (not valid for inline position)
player.hide(); Hide Sticky Player (not valid for inline position)
player.remove(); Remove audio player from the DOM
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Lucas G. Martinez - Initial work - Lucasato
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details