Skip to content

Instantly share code, notes, and snippets.

@IslamRustamov
Created January 7, 2026 20:01
Show Gist options
  • Select an option

  • Save IslamRustamov/418c647746e8e05f1472e1ea69cddca6 to your computer and use it in GitHub Desktop.

Select an option

Save IslamRustamov/418c647746e8e05f1472e1ea69cddca6 to your computer and use it in GitHub Desktop.
case CONTENT_TYPE_HLS:
if (!BuildConfig.USE_EXOPLAYER_HLS) {
DebugLog.e("Exo Player Exception", "HLS is not enabled!");
throw new IllegalStateException("HLS is not enabled!");
}
DataSource.Factory dataSourceFactory = mediaDataSourceFactory;
if (useCache) {
dataSourceFactory = RNVSimpleCache.INSTANCE.getCacheFactory(buildHttpDataSourceFactory(true));
}
mediaSourceFactory = new HlsMediaSource.Factory(
dataSourceFactory
).setAllowChunklessPreparation(source.getTextTracksAllowChunklessPreparation());
break;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment