Merge "Don't try to output really long URLs HTML5Audio exception handler."
This commit is contained in:
@@ -173,7 +173,8 @@ class HTML5Audio extends Handler
|
||||
mState = INITIALIZED;
|
||||
mMediaPlayer.prepareAsync();
|
||||
} catch (IOException e) {
|
||||
Log.e(LOGTAG, "couldn't load the resource: " + url + " exc: " + e);
|
||||
String debugUrl = url.length() > 128 ? url.substring(0, 128) + "..." : url;
|
||||
Log.e(LOGTAG, "couldn't load the resource: "+ debugUrl +" exc: " + e);
|
||||
resetMediaPlayer();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user