0.1.6 • Published 5 years ago

music-component v0.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

Build Status

\<music-component>

Run npm install

$ npm install

Properties

Propertiesvalue (default)description
pausedfalsedefines wether the song is paused or not
songUrl""determines the direction of the song
songDuration0its set to be the duration of the song in seconds
startingTime0determines the starting position of the song (in seconds)
songProgress0current progresss of the song
volume0determines the volume of the audio player
searchArgument""search String (used with search-song component)
hiddenListtruehide the list of songs(song-list component)
songName""name of the song to be displayed
listRequestUrl""url of the songs list (used with song-list component)
trackUrl""specific song request direction (combination of songUrl and songName)
invisibleControlsfalsedetermines the visibility of the controls

Events

song-playingonly fires when the song is playing
song-pausedonly fires once the song is paused
slider-clickedfires when the time slider is clicked
dragging-changedfires once the slider finishes dragging
volume-changedfires when the volume is changed

Styling

Variable nameTypeUsed
--music-player-componentMixinhost styling of the music player
--music-controls-buttonsMixinControl buttons styling
--music-control-button-inkVariableEffect of control buttons once clicked
--player-container-styleMixinstyling of the music player container
--player-button-container-styleMixinStilyng of the control buttons container
--music-slider-colorVariablecolor of the progress and volume sliders
--music-slider-knob-colorVariablecolor of the sliders knob

Install the Polymer-CLI

First, make sure you have the Polymer CLI installed. Then run polymer serve to serve your element locally.

Viewing Your Element

$ polymer serve

Running Tests

$ polymer test

Your application is already set up to be tested via web-component-tester. Run polymer test to run your application's test suite locally.