Package: | Fabs.boombox |
Defined In: | Playlist.js |
Class: | Playlist |
Subclasses: | Podcast, Xspf |
Extends: | Object |
Method | Defined By | |
---|---|---|
Playlist( Object config )
Parameters:
| Playlist | |
addTrack( Object/Track track )
:
voidAdds an track to the current playlist Adds an track to the current playlist Parameters:
| Playlist | |
addTracks( Array tracks )
:
voidAdds an array of tracks to the playlist Adds an array of tracks to the playlist Parameters:
| Playlist | |
getNext( [Boolean shuffle ] )
:
voidReturns the next track, but does not immediately update the playlist index Returns the next track, but does not immediately update the playlist index Parameters:
| Playlist |
Event | Defined By | |
---|---|---|
trackadded :
( Track track , Playlist this )
Fires when the a track is added Fires when the a track is added Listeners will be called with the following arguments:
| Playlist | |
trackloaderror :
( Track track , Playlist this )
Fires when the a track does not load correctly Fires when the a track does not load correctly Listeners will be called with the following arguments:
| Playlist | |
trackpositionchange :
( Track track )
Listeners will be called with the following arguments:
| Playlist | |
trackremoved :
( Track track , Playlist this )
Fires when the a track is removed Fires when the a track is removed Listeners will be called with the following arguments:
| Playlist |