Skip to content

Commit

Permalink
Always show the error code in Demo app when error happens
Browse files Browse the repository at this point in the history
If a successful playback was done before an error occured
the error code was not shown in the Demo app. Fixed this.
  • Loading branch information
Oscar Rydhé authored and Jimmy Dahlqvist committed Jun 25, 2015
1 parent 254871a commit 5c2528d
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -928,6 +928,7 @@ public void setMediaBrowserState(ListAdapter adapter, String path) {
@Override
public boolean onError(MediaPlayer mp, int what, int extra) {
mSubtitleView.setText("Error " + errorCodeToString(what));
mSubtitleView.setLayoutParams(mSubtitleLayoutBottom);
mIsBuffering = false;
toggleLoading(false);
mIsPrepared = false;
Expand Down

0 comments on commit 5c2528d

Please sign in to comment.