Added streaming support

This commit is contained in:
ByteHamster 2018-04-19 21:46:41 +02:00
parent 9cf32a2aa9
commit 7e61de3f65
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ public class ExoPlayer implements IPlayer {
// Produces Extractor instances for parsing the media data.
ExtractorsFactory extractorsFactory = new DefaultExtractorsFactory();
mediaSource = new ExtractorMediaSource(
Uri.fromFile(new File(s)), dataSourceFactory, extractorsFactory, null, null);
Uri.parse(s), dataSourceFactory, extractorsFactory, null, null);
}
@Override