Is it possible to check if it's actually a URL that can be loaded with the player before attempting to load it?
String mUrl = " --- ";
player = new SimpleExoPlayer.Builder(this).build();
playerView.setPlayer(player);
DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(this,
Util.getUserAgent(this, "yourApplicationName"));
Uri uri = Uri.parse(mUrl);
MediaSource videoSource =
new ProgressiveMediaSource.Factory(dataSourceFactory)
.createMediaSource(uri);
player.prepare(videoSource);
Or if theres a library that does this?