docs/doc/reference/com/google/android/exoplayer2/upstream/ResolvingDataSource.Resolver.html
Package com.google.android.exoplayer2.upstream
public static interfaceResolvingDataSource.Resolver
Resolves DataSpecs.
All Methods Instance Methods Abstract Methods Default Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| DataSpec | resolveDataSpec(DataSpec dataSpec) |
Resolves a DataSpec before forwarding it to the wrapped DataSource.
|
| default Uri | resolveReportedUri(Uri uri) |
Resolves a URI reported by DataSource.getUri() for event reporting and caching purposes.
|
-
[DataSpec](DataSpec.html "class in com.google.android.exoplayer2.upstream")resolveDataSpec([DataSpec](DataSpec.html "class in com.google.android.exoplayer2.upstream")dataSpec)
throws[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")
Resolves a DataSpec before forwarding it to the wrapped DataSource. This method is allowed to block until the DataSpec has been resolved.
Note that this method is called for every new connection, so caching of results is recommended, especially if network operations are involved.
Parameters:dataSpec - The original DataSpec.Returns:The resolved DataSpec.Throws:IOException - If an IOException occurred while resolving the DataSpec.
-
default[Uri](https://developer.android.com/reference/android/net/Uri.html "class or interface in android.net")resolveReportedUri([Uri](https://developer.android.com/reference/android/net/Uri.html?is-external=true "class or interface in android.net")uri)
Resolves a URI reported by DataSource.getUri() for event reporting and caching purposes.
Implementations do not need to overwrite this method unless they want to change the reported URI.
This method is not allowed to block.
Parameters:uri - The URI as reported by DataSource.getUri().Returns:The resolved URI used for event reporting and caching.