com.google.android.exoplayer2.upstream.Loader.UnexpectedLoaderException Java Examples
The following examples show how to use
com.google.android.exoplayer2.upstream.Loader.UnexpectedLoaderException.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultLoadErrorHandlingPolicy.java From MediaSDK with Apache License 2.0 | 5 votes |
/** * Retries for any exception that is not a subclass of {@link ParserException}, {@link * FileNotFoundException} or {@link UnexpectedLoaderException}. The retry delay is calculated as * {@code Math.min((errorCount - 1) * 1000, 5000)}. */ @Override public long getRetryDelayMsFor( int dataType, long loadDurationMs, IOException exception, int errorCount) { return exception instanceof ParserException || exception instanceof FileNotFoundException || exception instanceof UnexpectedLoaderException ? C.TIME_UNSET : Math.min((errorCount - 1) * 1000, 5000); }
Example #2
Source File: DefaultLoadErrorHandlingPolicy.java From Telegram-FOSS with GNU General Public License v2.0 | 5 votes |
/** * Retries for any exception that is not a subclass of {@link ParserException}, {@link * FileNotFoundException} or {@link UnexpectedLoaderException}. The retry delay is calculated as * {@code Math.min((errorCount - 1) * 1000, 5000)}. */ @Override public long getRetryDelayMsFor( int dataType, long loadDurationMs, IOException exception, int errorCount) { return exception instanceof ParserException || exception instanceof FileNotFoundException || exception instanceof UnexpectedLoaderException ? C.TIME_UNSET : Math.min((errorCount - 1) * 1000, 5000); }
Example #3
Source File: DefaultLoadErrorHandlingPolicy.java From Telegram with GNU General Public License v2.0 | 5 votes |
/** * Retries for any exception that is not a subclass of {@link ParserException}, {@link * FileNotFoundException} or {@link UnexpectedLoaderException}. The retry delay is calculated as * {@code Math.min((errorCount - 1) * 1000, 5000)}. */ @Override public long getRetryDelayMsFor( int dataType, long loadDurationMs, IOException exception, int errorCount) { return exception instanceof ParserException || exception instanceof FileNotFoundException || exception instanceof UnexpectedLoaderException ? C.TIME_UNSET : Math.min((errorCount - 1) * 1000, 5000); }