mirror of
https://github.com/androidx/media.git
synced 2025-04-30 06:46:50 +08:00

Using a file:// URL for loading an HLS stream (for testing) would fail due to casting the connection to an HttpURLConnection in DefaultHttpDataSource. This change makes UriDataSource an interface for objects that are DataSources with URIs. That allows for reading manifests for HLS using just a UriDataSource rather than an HttpDataSource (URLs in the playlist are relative to the data source's URL so the getUri method is needed).