Closed oleynikd closed 8 years ago
@oleynikd Thanks for PR. I'm welcome to add an ability to set error listener, but I prefer to define it as separate method like the following.
public void setOnErrorListener(@Nullable MediaPlayer.OnErrorListener listener) {
mMediaPlayer.setOnErrorListener(listener);
}
Please tell me if u have any trouble with this.
I just published ver 1.0.2, which has setOnErrorListener.
Now you can set
OnErrorListener
inprepare()
andprepareAsync()
methods:Basically added 2 new methods: