PlaylistXspf
Package: | Fabs.boombox.playlist |
Defined In: | Xspf.js |
Class: | Xspf |
Extends: | Playlist |
Config Options | Defined By | |
---|---|---|
url : String The url of the xspf | Xspf | |
xml : XMLElement The xml element of the xspf | Xspf |
Method | Defined By | |
---|---|---|
Xspf( Object config )
Parameters:
| Xspf | |
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 | |
loadUrl( String url )
:
voidLoad a url Load a url Parameters:
| Xspf | |
loadXML( XMLElement xml )
:
voidLoad the xml of the podcast Load the xml of the podcast Parameters:
| Xspf |
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 |