Commit 81ce6bba by olly Committed by Oliver Woodman

Allow DashMediaSource to take an optional DashManifest

Also allow custom DashManifestParser injection, to
support parsing of custom elements and attributes that
service providers may wish to include in their manifests
(e.g. #2058).

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=139813108
parent 90e0919d
...@@ -43,4 +43,21 @@ public interface LoaderErrorThrower { ...@@ -43,4 +43,21 @@ public interface LoaderErrorThrower {
*/ */
void maybeThrowError(int minRetryCount) throws IOException; void maybeThrowError(int minRetryCount) throws IOException;
/**
* A {@link LoaderErrorThrower} that never throws.
*/
final class Dummy implements LoaderErrorThrower {
@Override
public void maybeThrowError() throws IOException {
// Do nothing.
}
@Override
public void maybeThrowError(int minRetryCount) throws IOException {
// Do nothing.
}
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment