google / google/ExoPlayer

How to setAllowChunklessPreparation(true) in MediaSourceFactory

Open
#9,079 1 comment 0 reactions 1 assignee Claimed by @marcbaechinger View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.