HTTP 302 redirect optimization

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.

Disable or enable 302 redirect optimization

Use the useRedirectedUrl property to turn 302 redirect on (true) or off (false).
For example:

// Set useRedirectedUrl property to false 
NetworkConfiguration networkConfiguration = new NetworkConfiguration(); 
//Set NetworkConfiguration as Metadata: 
MetadataNode resourceMetadata = new MetadataNode();
//Call MediaResource.createFromURL to set the metadata: 
MediaResource resource = MediaResource.createFromURL(url, resourceMetadata); 
//Load the resource 

On this page