Package com.castlabs.android.player
Class SingleControllerPlaylist.AbstractPlaylistListener
java.lang.Object
com.castlabs.android.player.SingleControllerPlaylist.AbstractPlaylistListener
- All Implemented Interfaces:
SingleControllerPlaylist.PlaylistListener
- Enclosing class:
SingleControllerPlaylist
public abstract static class SingleControllerPlaylist.AbstractPlaylistListener
extends Object
implements SingleControllerPlaylist.PlaylistListener
Utility class with empty implementations of the methods defined in
SingleControllerPlaylist.PlaylistListener
-
Constructor Summary
-
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.
-
Constructor Details
-
AbstractPlaylistListener
public AbstractPlaylistListener()
-
-
Method Details
-
onItemChange
Description copied from interface:SingleControllerPlaylist.PlaylistListener
Called every time a new item, defined by aPlayerConfig
starts playing.This method will also be called for the first element.
- Specified by:
onItemChange
in interfaceSingleControllerPlaylist.PlaylistListener
- Parameters:
config
- The config representing the new playlist item.
-
onPlaylistEnded
public void onPlaylistEnded()Description copied from interface:SingleControllerPlaylist.PlaylistListener
Called when the playlist reaches the end. Fired when thePlayerController.State.Finished
is reached due to playing the last item to the end.- Specified by:
onPlaylistEnded
in interfaceSingleControllerPlaylist.PlaylistListener
-