Skip to content

Instantly share code, notes, and snippets.

@ojw28
Last active January 4, 2018 16:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ojw28/3fcba122ccafc252b18823180c6bdcd1 to your computer and use it in GitHub Desktop.
Save ojw28/3fcba122ccafc252b18823180c6bdcd1 to your computer and use it in GitHub Desktop.
class PlayerErrorListener implements Player.EventListener {
@Override
public void onPlayerError(ExoPlaybackException error) {
// We're interested!
handlePlayerError(error);
}
@Override
public void onTimelineChanged(Timeline timeline, Object manifest, int reason) {
// We're not interested. Do nothing.
}
@Override
public void onTracksChanged(TrackGroupArray trackGroups, TrackSelectionArray trackSelections) {
// We're not interested. Do nothing.
}
// Many more methods we're not interested in...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment