Thank you for purchasing our script. If you have any questions that are beyond the scope of this help file, please feel free to email via our email. Thanks so much!
A) IMPORTANT NOTES - make sure you read this! - top
Please note that the MP3 Sticky Player installation and configuration is not complicated but because it has a lot of customizable settings it might seem complicated, please go through the entire documentation before trying to install it into your own page. Basically what it must be done is to copy some html code from the examples we provided and paste it into your own html page and of course add your own audio file.
When using mp3 files located on your server with relative paths you must add all folders that contains mp3 in the content folder, this is extremely important in order for all features to work correctly.
The server is character case sensitive so make sure that the MP3 Sticky Player settings are identical to those from the provided examples.
Some of the features will not work local like the share button or loading xml playlist file, this is normal behavior because most browser does not allow this, once uploaded on the server it will function properly.
When an error occurs a red info box with the error description will appear over the MP3 Sticky Player, please note that this box is there to help you understand the problem, for example if a mp3 file is not found the box will appear and inform you about the problem. The box can be closed when clicked or touched.
When testing local on IE7/IE8 or on an older browser that dose not support HTML5 audio it will not work because the flash (.swf) file is trying to comunicate with the browser and this is not allowed, of course it will work fine when tested online.
If you are not using Youtube set useYoutube:no in the contructor, this way the youtube API will not be loaded because there is no need for it.
The MP3 Sticky Player skin is constructed from .png images, only a few settings for changing colors are possible like changing the playlist or title track color. If you want a different skin the .png files must be modified. The skin is really flexible this is allowing to skin the MP3 Sticky Player as you like. We have a great designer so if you need a custom skin please contact us!
To use Soundcloud an API key from SoundCloud is required this can be done by register you SoundCloud api key here for free athttp://soundcloud.com/you/apps/new , after a key is provided it has to be passed inside the contructor like this soundCloudAPIKey:"your_api_key". Please note that I've provided one but it is possible that it will not work, the API is updated regularly so if loading a SoundCloud playlist or track will not work a new API key is required.
Currently all browsers except Opera have .mp3 or .mp4 support (this applies to desktop), on a mobile device all browsers have .mp3 / mp4 support. On a browser that does not have .mp3 / mp4 support the player will use flash. The good news is that the player will work only with .mp3 / mp4 files there is no need to use other audio formats.
HLS / m3u8 live streaming files.
MSP can play HLS / m3u8 files, the connection URL has to be passed as the data-path value in the playlist where you want to use it, example below
HLS / LIVE STREAMING / m3u8 - http://radiom2o-lh.akamaihd.net/i/RadioM2o_Live_1@42518/master.m3u8
Google drive files.
To get the track path mp3 or mp4 open your google drive page go to Disc – My drive.
Right click on get shareable link the like on screenshot: get video id 1get video id 2 and use that video ID to create google drive video URL.
This is final URL how google drive video URL should look:https://drive.google.com/uc?export=download&id=videoID
Replace videoID with the id taken from the previous step and use it as the video source:https://drive.google.com/uc?export=download&id=0B4Au_agYmWFZQWdHdHN3OVJLX0E
If you don't want RAP to display the current playing stong title from the radio station just add the mp3 radio stream like this : http://95.141.24.224:80/;.mp3. Adding the ;.mp3 at the end of the address will force the server to serve the mp3 stream instead of the http web page. Doing it this way the current song title will not be displayed. Please see below:
SHOUTCAST EXAMPLE - it really works :) - http://mp3.trb-stream.net/;.mp3
To get the current song title from the stream displayed the data-path of the track has to be set to the stream URL ex http://server:port/ and specify if the stream is shoutcast or icecast this way RAP will know how to parse the data from the radio station. Please see below:
SHOUTCAST EXAMPLE
ICECAST EXAMPLE
D) How to install MP3 Sticky Player into your html page - top
This is a small tutorial about how to install MSP into your page. MSP can be added inside a web page and positioned at the top or bottom, MSP will adapt its width based on the maxWidth property specified in the constructor, the height is set based on the controller height plus playlist height.
In the download files there is a start folder and in this folder there are html files starting with the label "skin", each of this examples have exactly the same structure with different constructor settings you can use one of them to copy and paste the required html code based on skin that you need, I will use the skin-minimal-dark.html as an example for this tutorial.
The skin is created using png images, if you want a custom skin please contact us. If you want to create a skin of your own modify the ones we already provided.
Copy and paste the content folder and the java folder into the same folder with your HTML file, inside the content folder there are other folders which are self explanatory. Keep only the skin folder that you need to save space on the server.
Open skin-minimal-dark.html with a text editor.
The javascript and css files must be imported, in the head section of your html file add the code from below. Please note that the .css file is used to style the playlists thumbnails description text.
Next step is to set up the playlists, to do this copy and paste the ul element with the id playlists into the body element, this id is passed into the constructor property playlistsId, this is how the playlist is identified, ilustrated below. For more info about playlists please read Setup playlists.
Title: My playlist 1
Type: HTML
Description: This playlist is created using html elements.
Title: My playlist 2
Type: PODCAST
Description: This playlist is created using a podcast URL.
Title: My playlist 3
Type: SOUNDCLOUD
Description: This playlist is created using a SoundCloud playlist URL.
Title: My playlist 4
Type: XML
Description: This playlist is created using a XML file.
Title: My playlist 5
Type: Mixed playlist
Description: This playlist contains mixed media, youtube, mp3 and soundcloud.
Title: My playlist 5
Type: YOUTUBE PLAYLIST
Description: This playlist is created using a YOUTUBE playlist.
Title: My playlist 6
Type: GENERATE FROM FOLDER
Description: This playlist is created from a folder of mp3 files.
Next step is to initialize the MSP with javascript, in the head section of your html page add the code the below. Please note that all parameters are described in the constructor parameters section.
This is how the player is installed in a HTML page, please read the Constructor parameters section to understand the MP3 Sticky Player properties
Please open any of the .html files provided with a text editor as reference.
These parameters represents the possible setting for the MP3 Sticky Player they are all visible in the below image and described below.
//-- main settings --//
instanceName:"player1" - The player instance name, trough this instance the API is called for example if the instance name is "player1" and if you want to call play of this instance it is called like this player1.play();. Please note that the instance name must be unique for each instance.
playlistsId:"playlists" - The id of the ul html element that represents the playlists, for more info please read Setup playlists..
skinPath:"content/minimal_skin_dark" - The skin path, the folder that contains the skin graphics.
mainFolderPath:"content" - The main folder path. This folder contains some important files like the php files and the mp3 files, in this folder you need to add your mp3 folders or mp3 files.
useVideo:"yes" - This can be yes or no, Set this to no if you are not using mp4 tracks this way the video player instance will not be created.
useYoutube:"yes" - The can be yes or no. Set this to no if you don't use youtube this way it will not load the youtube API.
useHEXColorsForSkin:"no" - this can be yes or no, if this is set to yes the player skin colors can be modified with hexadecimal colors, a skin normal and selected state can be set, please note that there are two special skins that we created for this feature that works perfectly, they can be found in the hex_white and hex_dark folder under the content folder so please use this skins if you are planning to use this feature,itwill work with the other skins also but it is possible that the colors will not be exactlly how you want because of the way the Math behind this works, as a note the white color on the skin will be filled 100% with the hex colors, the dark collor will be filed 0% with the hex color and everything in between will be aproximated as best as possible, this sounds more complicated then it actually is :) example here.
normalHEXButtonsColor:"#FF0000" - The hexadecimal color for the skin normal state.
selectedHEXButtonsColor:"#000000" - The hexadecimal color for the skin selected state.
skinPath:"minimal_skin_dark" - The skin folder path, the path for the skin that you want to use.
showSoundCloudUserNameInTitle:"yes" - this can be yes or no, show or not show the username in the track title, the username is added at the beggining of the track title and separated by "-" like this: username - track title.
privatePassword:"428c841430ea18a70f7b06525d4b748a" - this is the default password for private tracks the password has to be encoded using this link.
soundCloudAPIKey:"0aff03b3b79c2ac02fd2283b300735bd" - The soundcloud API, you can get the API KEY from https://developers.soundcloud.com/.
verticalPosition:"bottom" - this can top or bottom and represents the player vertical position.
horizontalPosition:"center" - this can left, center or right and represents the player horizontal position.
useDeepLinking:"yes" - this can be yes or no. Allow or not deeplinking, if deeplinking is disabled the facebook share button will share the current page url.
rightClickContextMenu:"default" - this can be developer, default or disabled. We would appreciate it if you can leave this feature set to developer.
animate:"yes" - this can be yes or no, if this is set to yes once the MP3 Sticky Player is loaded and ready the controller will animate/tween it's position otherwise it will appear without any animation.
showButtonsToolTips:"yes" - this can be yes or no.
autoPlay:"yes" - this can be yes or no.
loop:"no" - this can be yes or no.
shuffle:"no" - this can be yes or no.
maxPlaylistItems:100 - this is useful if the number of playlist items neeeds to be limited, for example if a playlist is loaded from SoundCloud and it has 1000 tracks it will be to large to display so the playlist will display only 100 tracks, if you want to load the total available number of tracks without limitation set this number to a large number like 10000.
maxWidth:750 - a number that represents the player maximum width in px, think of this property as it would be the max-width css property.
volume:.5 - A number from 0 to 1 that represents the volume level.
toolTipsButtonsHideDelay:1.5 - A float number that represents the duration in seconds until the tooltip button is showed on mouse hover.
toolTipsButtonFontColor:"#FFFFFF" - The tooltips button font color.
//-- controller settings --//
showControllerByDefault:"yes" - this can be yes or no. if this is set to yes the controller is showed as soon as the MP3 Sticky Player is loaded and displayed.
showThumbnail:"yes" - this can be yes or no. Hide or show globally the current track playlist thumbnail.
showNextAndPrevButtons:"yes" - this can be yes or no. Hide or show the next and prev play track buttons.
showSoundAnimation:"yes" - this can be yes or no. Hide or show the equalizer animation.
showLoopButton:"yes" - this can be yes or no. Hide or show the loop button.
showShuffleButton:"yes" - this can be yes or no. Hide or show the shuffle button.
showDownloadMp3Button:"yes" - this can be yes or no. Hide or show globally the download button.
showBuyButton:"yes" - this can be yes or no. Hide or show globally the buy button.
showFacebookButton:"yes" - this can be yes or no. Hide or show the facebook button.
titleColor:"#FFFFFF" - the title color.
timeColor:"#5a5a5a" - the current and total time color.
controllerHeight:70 - the controller height in pixels.
startSpaceBetweenButtons:10 - a number that represents the space between buttons in pixels, ilustrated below with the red arrows.
spaceBetweenButtons:10 - a number that represents the space between buttons in pixels, ilustrated below with the red arrows.
separatorOffsetOutSpace:10 - a number that represents the separators outer space in pixels, ilustrated below with the red arrows.
separatorOffsetInSpace:10 - a number that represents the separators inner space in pixels, ilustrated below with the red arrows.
disableScrubber:"no" - This can be yes or no.
lastButtonsOffsetTop:10 - a number that represents the top position in pixels of the last buttons (playlists, playlist, replay, shuffle, facebook buttons), ilustrated below with the red arrows.
allButtonsOffsetTopAndBottom:10 - a number that represents the buttons offset top and bottom in pixels, you can think of this as margin top and bottom for the buttons, ilustrated in the below image with the red arrows (please note that this option will only affect the MP3 Sticky Player if it is in minified mode).
titleBarOffsetTop:10 - a number that represents the title bar top position in pixels, ilustrated below with the red arrows.
mainScrubberOffsetTop:10 - a number that represents the main scrubbar and time top position in pixels, ilustrated below with the red arrows.
spaceBetweenMainScrubberAndTime:10 - a number that represents the space between the time and main scrubbar in pixels, ilustrated below with the red arrows.
startTimeSpace:10 - a number that represents the start space in pixels for the total and current time, you can think of this as margin left and right, ilustrated in the below image with the red arrows (please note that this option will only affect the MP3 Sticky Player if it is in minified mode).
scrubbersOffsetWidth:10 - a number that represents the total amount in pixels removed from the scrubber bars progress line when they are at the end (change number to understand it better, useful based on the skin type).
scrubbersOffestTotalWidth:10 - a number that represents the total amount in pixels added to the entire scrubber bar (change number to understand it better, useful based on the skin type).
volumeButtonAndScrubberOffsetTop:10 - a number that represents the top position in pixels of the volume button and volume scrubbar, ilustrated below with the red arrows.
spaceBetweenVolumeButtonAndScrubber:10 - a number that represents the space in pixels between the volume button and volume scrubbar, ilustrated below with the red arrows.
volumeScrubberOffestWidth:4 - a number that represents an addition to the volume scrubber total width.
scrubberOffsetBottom:10 - a number that represents the a bottom offset in pixels for the volume button and volume scrubber, you can think of this as margin bottom, ilustrated in the below image with the red arrows (please note that this option will only affect the MP3 Sticky Player if it is in minified mode).
//-- playlists window settings --//
showPlaylistsButtonAndPlaylists:"yes" - this can be yes or no, disable or enable the playlists button and playlists window.
showPlaylistsByDefault:"yes" - this can be yes or no, if this is set to yes the playlists window is showed as soon as the MP3 Sticky Player is loaded and displayed.
thumbnailSelectedType:"threshold" - this can be threshold, opacity or blackAndWhite, it represents the playlist thumbnail selected state (please note that this setting is always opacity when tested local or on a mobile device).
startAtPlaylist:0 - a number that represents the playlist number that will be loaded when the MP3 Sticky Player loads the first time, if deeplinking is used and the browser url has a playlist link this option is ignored. The playlists count starts from 0 (zero).
thumbnailMaxWidth:330 - a number that represents the thumbnail maximum width, the width of the thumbnail will vary based on the available space but it will never be higher then this option.
thumbnailMaxHeight:330 - a number that represents the thumbnail maximum width in pixels, the height of the thumbnail will vary based on the available space but it will never be higher then this option.
horizontalSpaceBetweenThumbnails:40 - a number that represents the horizontal space in pixels between thumbnails.
verticalSpaceBetweenThumbnails:40 - a number that represents the vertical space in pixels between thumbnails.
//-- playlist settings --//
playTrackAfterPlaylistLoad:"no" - this can be yes or no. If you want to play the track after the playlist load and autoplay is set to false set this option to yes otherwise set it to no.
showPlayListButtonAndPlaylist:"yes" - this can be yes or no. Disable or enable (hide or show) the playlist button and playlist.
showPlayListOnAndroid:"no" - this can be yes or no. On android the playlist is disabled by default, but it can also be enabled. We have chosen to disable the playlist by default on android because of performance issues, for example on Samsung Galaxy S3 in the native browser the player performs poorly with the playlist enabled and with the playlist disabled it performs great. On the Google Chrome browser the player performs very good. On a Google Nexus 5 the player performs very good on all browsers. We have chosen to disable the playlist to make sure it works on all android devices. Please note that the player will still be able to play all tracks from the current playlist even with the playlist disabled..
showPlayListByDefault:"yes" - this can be yes or no, if this is set to yes the playlist is showed as soon as the MP3 Sticky Player is loaded and displayed otherwise the playlist is hidden and it will only appear if the playlist button is clicked or touched.
showPlaylistItemPlayButton:"yes" - this can be yes or no. Hide or show the small play/pause button that appear over a playlist item.
showPlaylistItemPlayButton:"yes" - this can be yes or no. Hide or show the small play/pause button that appear over a playlist item.
showPlaylistItemDownloadButton:"yes" - this can be yes or no. Hide or show the download buttons that appears over playlist items.
addScrollBarMouseWheelSupport:"yes" - this can be yes or no. Add or not support for the mousewheel to scroll the playlist.
showTracksNumbers:"yes" - this can be yes or no. Ads or not counting numbers at the begining of each track.
playlistBackgroundColor:"#000000" - the playlist background color, this is only visible if a search is made and there are only a few tracks items are visible.
trackTitleNormalColor:"#FFFFFF" - the track title color in normal mode.
trackTitleNormalColor:"#FFFFFF" - the track title color in normal mode.
trackTitleSelectedColor:"#FFFFFF" - the track title color in selected mode.
nrOfVisiblePlaylistItems:12 - Limit the maximum number of playlist visible items, for example if you have 100 playlist items the playlist can be set to show only 20 playlist items and the rest can be scrolled, if the total number of playlist items is grater than this feature all playlist items will be showed.
trackTitleOffsetLeft:10 - offset left in pixels for the playlist item title, ilustrated below with the red arrows.
playPauseButtonOffsetLeftAndRight:10 - offset left and right in pixels for the play/pause button of a playlist item, ilustrated below with the red arrows.
durationOffsetRight:10 - offset right in pixels for the playlist item duration, ilustrated below with the red arrows.
scrollbarOffestWidth:10 - a number that represents the total amount in pixels removed from the playlist width (change number to understand it better, useful based on the skin type).
showPlaybackRateButton:"yes" - this can be yes or no, hides or shows the playbackrate button.
showSortButtons:"yes" - this can be yes or no, hides or shows the sort buttons.
defaultPlaybackRate:1 - a number from 0.5 to 3 where 1 is the normal speed / rate.
playbackRateWindowTextColor:"#FFFFFF" - the playbackrate button text color.
//-- search bar settings --//
showSearchBar:"yes" - this can be yes or no, hides or shows the search bar.
showSortButtons:"yes" - this can be yes or no, hides or shows the sort buttons.
searchInputColor:"#888888" - the search input text color.
searchBarHeight:38 - the search bar height in px.
//-- opener settings --//
openerAlignment:"right" - this can be left or right.
showOpener:"yes" - this can be yes or no, show or hide the opener small button that is hiding or showing the player.
showOpenerPlayPauseButton:"yes" - this can be yes or no, show or hide the opener play/pause button.
openerEqulizerOffsetLeft:3 - opener equalizer left offset (left margin).
openerEqulizerOffsetTop:-1 - opener equalizer top offset (top margin).
//-- password window --//
borderColor:"#333333" - border color.
secondaryLabelsColor:"#a1a1a1" - the label color.
textColor:"#5a5a5a" - text color.
inputBackgroundColor:"#000000" - input text background color.
inputColor:"#FFFFFF" - input text color.
//-- popup settings --//
showPopupButton:"yes" - this can be yes or no.
popupWindowBackgroundColor:"#FFFFFF" - the popup window background color.
popupWindowWidth:750 - the popup window width in pixels.
popupWindowHeight:347 - the popup window height in pixels.
Open with a text editor one of the html files files starting with the label "skin" as reference.
Setting up the playlist window is simple, an ul tag must be added in the body tag, this
ul tag must have an unique id that is passed as a value to the MSP constructor as follows playlistsId"unique-id", in the examples provided the id is "playlists" but it can be have any value as long as it is unique.
To add/remove a playlist an li tags must be added/removed inside the playlists ul tag, this is illustrated below. MSP supports unlimited playlists but at least one playlist is required!.
Title: My playlist 1
Type: HTML
Description: This playlist is created using html elements.
Title: My playlist 2
Type: PODCAST
Description: This playlist is created using a podcast URL.
Title: My playlist 3
Type: SOUNDCLOUD
Description: This playlist is created using a SoundCloud playlist URL.
Title: My playlist 4
Type: XML
Description: This playlist is created using a XML file.
Title: My playlist 5
Type: Mixed playlist
Description: This playlist contains mixed media, youtube, mp3 and soundcloud.
Title: My playlist 5
Type: YOUTUBE PLAYLIST
Description: This playlist is created using a YOUTUBE playlist.
Title: My playlist 6
Type: GENERATE FROM FOLDER
Description: This playlist is created from a folder of mp3 files.
There are five playlist type as follow: HTML, YOUTUBE, PODCAST, XML, SOUNDCLOUD, and OFFICIAL.FM playlist . Each of this type of playlists are explained in detail below.
SoundCloud playlist.
To add/remove this type of playlist in the playlists add or remove the code from below into the playlists ul tag. The data-source represents the url of a SoundCloud playlist. The other attributes are self explanatory.
Title: My playlist 3
Type: SOUNDCLOUD
Description: This playlist is created using a SoundCloud playlist URL.
YOUTUBE playlist.
To add/remove this type of playlist in the playlists add or remove the code from below into the playlists ul tag. The data-source represents the url of a Youtube playlist, please note that you only have to add the list=... parameter from the youtube playlist URL. The other attributes are self explanatory.
Title: My playlist 5
Type: YOUTUBE PLAYLIST
Description: This playlist is created using a YOUTUBE playlist.
OFFICIAL.FM playlist.
To add/remove this type of playlist in the playlists add or remove the code from below into the playlists ul tag. The data-source represents the custom string plus the the playlist id. An official.fm playlist url looks something like this "http://www.official.fm/playlists/yrOG?from=homepage&track_id=MjH0", what you need to get from the url is the playlist id showed in bold and add it after the special string like this official.fm/yrOG.
Title: My playlist 5
Type: OFFICIAL.FM
Description: This playlist is created using a OFFICIAL.FM playlist URL.
HTML playlist & MIXED playlists.
To add/remove this type of playlist in the playlists add or remove the code from the below image into the playlists ul tag. The data-source represents the id of the playlist ul element. The other attributes are self explanatory.
Title: My playlist 1
Type: HTML
Description: This playlist is created using html elements.
To construct this type of playlist add the code from the below image inside the body HTML element. The code sample is self explanatory. To add/remove tracks add/remove li HTML elements with the data-path attribute, the data-path attribute can also contain a link to a soundcloud track, mp4 video or youtube video. If you don't need a thumbnail or duration remove the data-thumbpath and data-duration attributes. The data-buy-url attribute represents the track buy url or a javascript function that is called when the buy button is clicked, if you don't want a buy button remove this attribute. The data-downloadable attribute allows the track to be downloaded with a download button, if you don't need this feature remove this attribute.
MACKLEMORE & RYAN LEWIS vs MAJOR LAZER - can't hold us remix (ft swappi and 1st klase)
Crush ft. Camden Cox - Could This Be Real (Luminox Remix)
DJ SLiiNK X DiRTY SOUTH JOE - CERTiFiED TRAP TOUR OFFiCiAL MiX
Knife Party - LRAD (CRNKN FESTIE RMX)
FOLDER playlist.
To add/remove this type of playlist add or remove the code from below into the playlists ul tag.The data-source represents path of the mp3's folder (please note that this type of playlist can only be loaded form the same domain on which the html page resides, also the foler path must be relative to the path of the "proxyFolderPath.php", what this means is that your mp3's folder must be in the same folder or subfolder with the "proxyFolderPath.php" file ). The other attributes are self explanatory.
When adding the folder path to the data-source attribute a special string must be added before it, this string value is folder:, so for example if the mp3's folder path is myFolder the final string must look like this folder:myFolder. For a folder with a mp3's subfolder ex: myFolder/myMP3Folder the final string must look like this folder:myFolder/myMP3Folder .
Title: My playlist 6
Type: GENERATE FROM FOLDER
Description: This playlist is created from a folder of mp3 files.
XML playlist.
To add/remove this type of playlist in the playlists add or remove the code from below into the playlists ul tag. The data-source represents the path of the XML file. Please note that the XML path must be absolute, ex: http://www.domain.com/xmlFile.xml. The other attributes are self explanatory. Please note that the XML file does not allow special characters like "&", if you need to use this type of character numeric characters are required, a useful table with all this special characters can be found at this url.
Title: My playlist 4
Type: XML
Description: This playlist is created using a XML file.
To construct this type of playlist create an XML file with the same structure as the one from below (a sample XML file is included in the content folder). The code sample is self explanatory. To add/remove tracks add/remove li elements with the data-path attribute. If you don't need a thumbnail or duration remove the data-thumbpath and data-duration attributes.
PODCAST playlist.
To add/remove this type of playlist in the playlists add or remove the code from below into the playlists ul tag. The data-source represents the path of the PODCAST url.
Title: My playlist 2
Type: PODCAST
Description: This playlist is created using a podcast URL.
G) Starting / stopping a track at a specified time - top
It is possible to start or stop a track at a specified time, please note this is only possible in a HTML or XML playlist. In the example below there are two parameters data-start-at-time and data-stop-at-time, this two parameters values are strings in the format hours:minutes:seconds so for example to start a track at second 10 set data-start-at-time="00:00:10" and to stop it at second 30 set data-stop-at-time="00:00:30". Both features are optional, if not needed remove them from the playlist entry.
>
MP4 - Nirvana - Girls (Dj Dima House & Samsonoff Remix).
Inside the donwload files there is HTML file called API-example.html, in this file I have added all events and methods for reference, open the page source to see them. Full reference below. Please note that the properties are read only and they can only be written in the consturctor for more info about this please read the Constructor parameters section.
This method allows to add a track in the current playlist at runtime....
source: the mp3 file relative or absolute path or the youtube video URL or the mp4 video relative or absolute path.
title: the track title.
thumbPath: the track thumbnail relative or absolute path, if you don't want a thumbnail just set this to "".
duration: the track duraton with this format hours:minutes:seconds for example (00:06:14).
addAtTheBegginngOfPlaylist: this can be true or false, it allows to add the track at the beggining or end of the playlist.
download: this can be yes or no, it allows to download or not the track.
buy: this can be URL that will be opened when the buy button is clicked or a javascript function that you can call when the buy button is clicked, for example buyCustomFunction(), if you don't need a buy button just set this to "". Ex:window['player1'].addTrack("content/mp3/01.mp3", "New added track - new added artist", "content/thumbnails/brian.jpg", "05:45", true, true, "myFunction()");
popup
popup():void
Pop-up playler in a new window.
loadPlaylist
loadPlaylist(playlistId):void
Load a playlist based on id, the playlist count starts from 0.
showPlayer
showPlayer():void
Show the entire player.
hidePlayer
hidePlayer():void
Hide the entire player.
showCategories
showCategories():void
Show the playlist selector window.
showPlaylist
showPlaylist():void
Show the playlist.
hidePlaylist
hidePlaylist():void
Hide the playlist.
share
share():void
Share current track on facebook.
getCurrentTime
getCurrentTime():String
Returns the track current time.
getDuration
getDuration():String
Returns the total track duration.
setVolume
setVolume( Number ):void
Set the audio volume, this method accepts a parameter that represents a number between 0 (audio mute state) and 1 (audio maximum volume).
scrub
scrub( Number ):void
Notify instance to scrub (set the audio position), this method accepts a parameter that represents a number between 0 (audio start position) and 1 (audio end position).
playSpecificTrack
playSpecificTrack(categoryId, trackId):void
Play a specific cat based on the category id and track id, both parameters counting is starting from 0.
stop
stop():void
Stops the playback and the loading process if the loading process has started.
play
play():void
Start / play playback.
pause
pause():void
Pause the playback.
playPrev
playPrev():void
Play previous track.
playNext
playNext():void
Play next track.
playShuffle
playShuffle():void
Play shuffle track.
getIsAPIReady
getIsAPIReady():Boolean
Returns the API state, true if ready, false if not.
getCatId
getCatId():Number
Returns the current category id, the counting starts form 0.
getTrackId
getTrackId():Number
Returns the current track id, the counting starts form 0.
getTrackTitle
getTrackTitle():String
Returns the current track title.
setPlaybackRate
tsetPlaybackRate(rate):void
Set the playback rate / speed, the rate argument can be a number betweem 0.5 and 3 where 1 is normal rate /speed .
scrubbAtTime
scrubbAtTime(time):void
Scrub at a specified time in format hour:minutes:seconds for example 00:01:30.
Event listeners:
Event
Prefix
Description
ready
FWDStickyAudioPlayer.READY
Dispatched when the MP3 Sticky Player instance API is actually available.
start
FWDStickyAudioPlayer.START
Dispatched when the MP3 playing has started.
popup
FWDStickyAudioPlayer.POPUP
Dispatched when the player is pop-uped in a new window.
error
FWDStickyAudioPlayer.ERROR
Dispatched when the MP3 Sticky Player instance can't load or play the audio file, this event has a property of type string that represents the error message.
startToLoadPlaylist
FWDStickyAudioPlayer.START_TO_LOAD_PLAYLIST
Dispatched when the playlist loading has started.
playlistLoadCompleteHandler
FWDStickyAudioPlayer.LOAD_PLAYLIST_COMPLETE
Dispatched when the playlist loading is complete.
stop
FWDStickyAudioPlayer.STOP
Dispatched when the MP3 Sticky Player instance is stopped.
play
FWDStickyAudioPlayer.PLAY
Dispatched when the MP3 Sticky Player instance playback start to play.
pause
FWDStickyAudioPlayer.PAUSE
Dispatched when the MP3 Sticky Player instance playback is paused.
update
FWDStickyAudioPlayer.UPDATE
Dispatched when the MP3 Sticky Player instance is playing and it's position is changing (useful to update a custom scrub bar), this event has a property of type number between 0 (audio start position) and 1 (audio end position).
updateTime
FWDStickyAudioPlayer.UPDATE_TIME
Dispatched when the MP3 Sticky Player instance current duration is changing. This event has two properties of type string curTime and totalTime.
playComplete
FWDStickyAudioPlayer.PLAY_COMPLETE
Dispatched when the MP3 Sticky Player instance playback has reached the end of the audio file.
To set a track private there is a paramter data-is-private that has to be set to "yes". The global password for all tracks is set in the contructor privatePassword:"428c841430ea18a70f7b06525d4b748a". If you want to use a unique password for a track there is a parameter data-private-track-password that has to be set to a unique encrypted password. this is showed below.
PRIVATE track EXAMPLE
Support for private tracks.
MP3 STICKY PLAYER
Each track can contain a detailed description, the description can be formatted with CSS as you like. The description window and description button can be disabled individually for each track or globally for all tracks.
For more information about this please follow this link
To encrypt the track password there is a tool I have created that will encrypt the password at this link, enter your desired password in the input field then click on the Encrypt passowrd button, after this the encrypted password can be copied and pasted when needed. The default password is Melinda.
To encrypt the track path I have created a tool that will encrypt the track path at this link, enter the track path (this applies all track / audio paths) in the input field then click on the Encrypt media button, once this is done copy the encrypted track path and paste it as the track source parameter.this is showed below. In this example content/mp3/01.mp3 is encrypted to encrypt:Y29udGVudC9tcDMvMDEubXAz .
MP3 - MACKLEMORE & RYAN LEWIS vs MAJOR LAZER can't hold us remix (ft swappi and 1st klase)
Once again, thank you so much for purchasing this item. As I said at the beginning, I'd be glad to help you if you have any questions regarding this MP3 Sticky Player and I'll do my best to assist.