Further unpack exoplayer error messages
This commit is contained in:
parent
413df73495
commit
d6381371de
|
@ -113,6 +113,11 @@ public class ExoPlayerWrapper implements IPlayer {
|
||||||
} else {
|
} else {
|
||||||
Throwable cause = error.getCause();
|
Throwable cause = error.getCause();
|
||||||
if (cause instanceof HttpDataSource.HttpDataSourceException) {
|
if (cause instanceof HttpDataSource.HttpDataSourceException) {
|
||||||
|
if (cause.getCause() != null) {
|
||||||
|
cause = cause.getCause();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (cause != null && "Source error".equals(cause.getMessage())) {
|
||||||
cause = cause.getCause();
|
cause = cause.getCause();
|
||||||
}
|
}
|
||||||
audioErrorListener.accept(cause != null ? cause.getMessage() : error.getMessage());
|
audioErrorListener.accept(cause != null ? cause.getMessage() : error.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue