How to setAllowChunklessPreparation(true) in MediaSourceFactory
Open
needs triage
question
- Dominant language
- Java
- Stars
- 21.9k
- Forks
- 6k
- PR merge metrics
- No merged PRs in 30d
Description
We were earlier using ConcatinatingMediaSource to prepare our player.
While creating mediasource, we were using the following to enable chunkless preparation for HLS:
`HlsMediaSource.Factory(dataSourceFactory).setAllowChunklessPreparation(true);`
Now, we are moving to using MediaItems instead of mediasource to keep our app in line with latest releases of exo sample app. How can we enable chunkless preparation using the new flow:
`MediaSourceFactory mediaSourceFactory =
new DefaultMediaSourceFactory(dataSourceFactory)
.setAdsLoaderProvider(this::getAdsLoader)
.setAdViewProvider(playerView);`
Contributor guide
Assessment
This issue has not been assessed yet.