Own Design & Presets
Design your FrissBee Audio Player the way you want.
Overview
The FrissBee Audio Player has a number of setting options for the design.
Here is the list of all attributes:
bg-colorcolor-text-playerbarfont-band-namefont-song-titlecolor-slidercolor-play-pausecolor-buttonsheight-playliston-off-playlistvolume-startcolor-playlist-text-inactivecolor-playlist-text-activecolor-playlist-bg-inactivecolor-playlist-bg-activeshadow-player
Attribute description
It would result in a long text if all attributes were described individually here. It is much easier to generate the design with the Design Generator. You will see very quickly which attributes can take which value. That is much easier, isn't it?
The easiest way to change the design
Use a preset from the FrissBee Audio Player and change only the attributes you want to adjust. You
can set this in the frissbee-audio-player HTM tag or with JavaScript using the setAttribute() methode.
An example of changing the attribute volume-start with the preset dark:
frissbee-audio-player HTML tag
With JavaScript
Change the design with all attributes
For a completely own design you can set all attributes of course. Then the attribute
preset is not necessary - better said unnecessary.
Of course you can do this in the frissbee-audio-player HTML tag or in the JavaScript file with setAttribute() as described
in "The easiest way to change the design".
You can use the Design Generator for this.
Change the design with own presets
You can also create your own presets. Create a preset with all the attributes. The Design Generator makes it simple and fast.
The following code example shows what a list of presets looks like and how to pass it to the player using the property customPresets:
Notice:
Set the preset attribute with the setAttribute() method in JavaScript - NOT in the
frissbee-audio-player HTML tag.
The reason for this is that the player (the frissbee-audio-player HTML tag) is loaded first and the player does not know your custom
preset name at this time, which is loaded later. So the custom preset must be set after the frissbee-audio-player HTML tag is loaded.
The order is important!
player.customPresetsplayer.setAttribute()player.playlist
If you want to get the value of an attribute, then use the getAttribute() method.