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).
Demo application
This folder contains a demo application that uses ExoPlayer to play a number of test streams. It can be used as a starting point or reference project when developing other applications that make use of the ExoPlayer library.