Set chunkless preparation

Enable ExoPlayer to set up quickly


Chunkless preparation allows ExoPlayer to set up more quickly if the #EXT-X-STREAM-INF tags contain the CODECS attribute. ExoPlayer will not need to download part of the media to determine which codec was used.

As shown in the following example, use the ExoPlayerSettings reference that can be retrieved from JWPlayerView to enable chunkless preparation. Chunkless preparation is disabled by default.


player.getExoPlayerSettings().enableChunkLessPreparation();
// Setup the player config
PlayerConfig playerConfig = new PlayerConfig.Builder()
        //...
        .build();
player.setup(playerConfig);


Did this page help you?