Package com.tagtraum.audiokern
Interface PlayListPlayerInterceptor
-
public interface PlayListPlayerInterceptor
PlayListPlayer interceptor.- Author:
- Hendrik Schreiber
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
init()
Initialize this interceptor before the next song is set.void
postOpen(PlayListPlayer player, AudioSong song)
Called after the givenAudioSong
is opened via a call toAudioPlayer.open(AudioSong)
.void
preOpen(PlayListPlayer player, AudioSong song)
Called before the givenAudioSong
is actually opened via a call toAudioPlayer.open(AudioSong)
.void
suspend()
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 givenAudioSong
is 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 givenAudioSong
is 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).
-
-