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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonItemChange(PlayerConfig config) Called every time a new item, defined by aPlayerConfigstarts playing.voidCalled when the playlist reaches the end.
-
Constructor Details
-
AbstractPlaylistListener
public AbstractPlaylistListener()Default constructor
-
-
Method Details
-
onItemChange
Description copied from interface:SingleControllerPlaylist.PlaylistListenerCalled every time a new item, defined by aPlayerConfigstarts playing.This method will also be called for the first element.
- Specified by:
onItemChangein interfaceSingleControllerPlaylist.PlaylistListener- Parameters:
config- The config representing the new playlist item.
-
onPlaylistEnded
public void onPlaylistEnded()Description copied from interface:SingleControllerPlaylist.PlaylistListenerCalled when the playlist reaches the end. Fired when thePlayerController.State.Finishedis reached due to playing the last item to the end.- Specified by:
onPlaylistEndedin interfaceSingleControllerPlaylist.PlaylistListener
-