302 redirect optimization minimizes the number of 302 redirect responses, which allows your application to load balance more effectively.
If a main manifest request is redirected, and 302 optimization is enabled in your player, subsequent requests made for assets from that manifest will use the final domain location, which avoids additional 302 responses. This feature is enabled by default, and you can change this setting.
useRedirectedUrl property to turn 302 redirect on (
true) or off (
// Set useRedirectedUrl property to false NetworkConfiguration networkConfiguration = new NetworkConfiguration(); networkConfiguration.setUseRedirectedUrl(false); //Set NetworkConfiguration on MediaPlayerItemConfig MediaPlayerItemConfig config = new MediaPlayerItemConfig (); config.setNetworkConfiguration(networkConfiguration); //Use this config when loading the MediaPlayerItem or calling replaceCurrentResource