Package com.castlabs.android.player
Interface SingleControllerPlaylist.PlaylistListener
- All Known Implementing Classes:
SingleControllerPlaylist.AbstractPlaylistListener
- Enclosing class:
SingleControllerPlaylist
public static interface SingleControllerPlaylist.PlaylistListener
Playlist-related events listener.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
onItemChange
(PlayerConfig config) Called every time a new item, defined by aPlayerConfig
starts playing.void
Called when the playlist reaches the end.
-
Method Details
-
onItemChange
Called every time a new item, defined by aPlayerConfig
starts playing.This method will also be called for the first element.
- Parameters:
config
- The config representing the new playlist item.
-
onPlaylistEnded
void onPlaylistEnded()Called when the playlist reaches the end. Fired when thePlayerController.State.Finished
is reached due to playing the last item to the end.
-