Last active
January 4, 2018 16:57
-
-
Save ojw28/3fcba122ccafc252b18823180c6bdcd1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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