Created
January 7, 2026 20:01
-
-
Save IslamRustamov/418c647746e8e05f1472e1ea69cddca6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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