Turn on HLS chunkless preparation by default.

Using chunkless preparation greatly improves start up time if the master
playlist declares CODECS for the renditions. Hence, we turn this on
by default as it benefits most well-defined HLS master playlists.

The only known reason why developers may want to turn this feature off is
when the renditions contain muxed closed-caption tracks that are not
declared in the master playlist. So this change also updates the documentation
and RELEASENOTES to point out this caveat.

PiperOrigin-RevId: 413950036
This commit is contained in:
tonihei 2021-12-03 17:14:51 +00:00 committed by Ian Baker
parent fdc57d2d66
commit 546d9f592b

View File

@ -144,6 +144,7 @@ public final class HlsMediaSource extends BaseMediaSource
metadataType = METADATA_TYPE_ID3;
streamKeys = Collections.emptyList();
elapsedRealTimeOffsetMs = C.TIME_UNSET;
allowChunklessPreparation = true;
}
/**