Package com.tagtraum.audiokern
Interface PlayListPlayerInterceptor
-
public interface PlayListPlayerInterceptorPlayListPlayer interceptor.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidinit()Initialize this interceptor before the next song is set.voidpostOpen(PlayListPlayer player, AudioSong song)Called after the givenAudioSongis opened via a call toAudioPlayer.open(AudioSong).voidpreOpen(PlayListPlayer player, AudioSong song)Called before the givenAudioSongis actually opened via a call toAudioPlayer.open(AudioSong).voidsuspend()Suspends the interceptor's actions for the current song, e.g.
-
-
-
Method Detail
-
init
void init()
Initialize this interceptor before the next song is set. Called beforepreOpen(PlayListPlayer, AudioSong).
-
preOpen
void preOpen(PlayListPlayer player, AudioSong song)
Called before the givenAudioSongis actually opened via a call toAudioPlayer.open(AudioSong). Allows for manipulation of the player's state (e.g.AudioPlayer.pause()).- Parameters:
player- playersong- new song
-
postOpen
void postOpen(PlayListPlayer player, AudioSong song)
Called after the givenAudioSongis opened via a call toAudioPlayer.open(AudioSong). Allows for manipulation of the player's state (e.g.AudioPlayer.setTime(long)).- Parameters:
player- playersong- song
-
suspend
void suspend()
Suspends the interceptor's actions for the current song, e.g. as the result of a user action (navigation in the song).
-
-