feat: read hls data source

This commit is contained in:
CappielloAntonio 2024-05-26 11:05:43 +02:00
parent 263d9ebc5f
commit 92fd6b01e4
4 changed files with 11 additions and 9 deletions

View file

@ -80,6 +80,7 @@ public final class DownloadUtil {
public static synchronized DataSource.Factory getDataSourceFactory(Context context) {
if (dataSourceFactory == null) {
context = context.getApplicationContext();
DefaultDataSource.Factory upstreamFactory = new DefaultDataSource.Factory(context, getHttpDataSourceFactory());
if (Preferences.getStreamingCacheSize() > 0) {