Skip to content

Commit

Permalink
Update RemoteManagedMediaPlayer.java
Browse files Browse the repository at this point in the history
  • Loading branch information
arodriguezgb authored Feb 8, 2021
1 parent b82d6b1 commit 4622ded
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,12 @@ public void pause() {
}
}

@Override
public boolean onError(MediaPlayer mp, int what, int extra) {
onRemoteLoadListener.onRemoteLoadComplete(false);
return super.onError(mp, what, extra);
@Override public boolean onError(MediaPlayer mp, int what, int extra) {
try {
onRemoteLoadListener.onRemoteLoadComplete(false);
} catch(Exception e) {

}
return super.onError(mp, what, extra);
}
}

0 comments on commit 4622ded

Please sign in to comment.