![]() I had a look at the code and figured out what was going wrong. as long as start_song is not equal to 1 and it is not the very first played track. There are elements that some events are bound to such as play and next and other. Each element is picked up by a class prefixed with 'amplitude-' and depending on the environment, an attribute that relates to the index of a song in your list of songs or a playlist you are using the element with. This is exactly what the "amplitude-active-song-container" class is meant for! But in the particular following case, there seems to be a flaw in the code source: if the start_song (default index 0 or whatever is specified in the init config object) is the same as the very first played track, then the "amplitude-active-song-container" class is not added to the elements. AmplitudeJS comes with a variety of elements. Building a playlist, I wanted to give a particular style to the UI of the song currently playing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |