Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DefaultHttpDataSourceFactory dataIntance = new DefaultHttpDataSourceFactory(
- Util.getUserAgent(context, getPackageName()),
- EXO_CONNECT_TIME,
- EXO_CONNECT_TIME,
- true);
- Map<String, String> headers = new HashMap<>();
- headers.put("Referer", REFERER_URL_HERE);
- dataIntance.getDefaultRequestProperties().set(headers);
- CacheDataSourceFactory dataSourceFactory = new CacheDataSourceFactory(
- ExoPlayerCache.getInstance(context), dataIntance, CacheDataSource.FLAG_IGNORE_CACHE_ON_ERROR);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement