2222import com .google .android .exoplayer2 .upstream .cache .LeastRecentlyUsedCacheEvictor ;
2323import com .google .android .exoplayer2 .upstream .cache .SimpleCache ;
2424
25+ import org .schabi .newpipe .DownloaderImpl ;
2526import org .schabi .newpipe .extractor .services .youtube .dashmanifestcreators .YoutubeOtfDashManifestCreator ;
2627import org .schabi .newpipe .extractor .services .youtube .dashmanifestcreators .YoutubePostLiveStreamDvrDashManifestCreator ;
2728import org .schabi .newpipe .extractor .services .youtube .dashmanifestcreators .YoutubeProgressiveDashManifestCreator ;
@@ -76,7 +77,6 @@ public class PlayerDataSource {
7677
7778
7879 public PlayerDataSource (final Context context ,
79- final String userAgent ,
8080 final TransferListener transferListener ) {
8181
8282 progressiveLoadIntervalBytes = PlayerHelper .getProgressiveLoadIntervalBytes (context );
@@ -86,10 +86,10 @@ public PlayerDataSource(final Context context,
8686
8787 // generic data source factories use DefaultHttpDataSource.Factory
8888 cachelessDataSourceFactory = new DefaultDataSource .Factory (context ,
89- new DefaultHttpDataSource .Factory ().setUserAgent (userAgent ))
89+ new DefaultHttpDataSource .Factory ().setUserAgent (DownloaderImpl . USER_AGENT ))
9090 .setTransferListener (transferListener );
9191 cacheDataSourceFactory = new CacheFactory (context , transferListener , cache ,
92- new DefaultHttpDataSource .Factory ().setUserAgent (userAgent ));
92+ new DefaultHttpDataSource .Factory ().setUserAgent (DownloaderImpl . USER_AGENT ));
9393
9494 // YouTube-specific data source factories use getYoutubeHttpDataSourceFactory()
9595 ytHlsCacheDataSourceFactory = new CacheFactory (context , transferListener , cache ,
0 commit comments