Merge pull request #5637 from ByteHamster/unpack-exoplayer-message
Further unpack exoplayer error messages
This commit is contained in:
commit
e8f97c28b0
|
@ -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