public final class

LoadErrorHandlingPolicy.FallbackSelection

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.upstream.LoadErrorHandlingPolicy.FallbackSelection

Overview

A selected fallback option.

Summary

Fields
public final longexclusionDurationMs

The duration for which the failing resource should be excluded, in milliseconds.

public final inttype

The type of fallback.

Constructors
publicFallbackSelection(int type, long exclusionDurationMs)

Creates an instance.

Methods
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final int type

The type of fallback.

public final long exclusionDurationMs

The duration for which the failing resource should be excluded, in milliseconds.

Constructors

public FallbackSelection(int type, long exclusionDurationMs)

Creates an instance.

Parameters:

type: The type of fallback.
exclusionDurationMs: The duration for which the failing resource should be excluded, in milliseconds. Must be non-negative.