UnrecognizedInputFormatException


@UnstableApi
public class UnrecognizedInputFormatException extends ParserException


Thrown if the input format was not recognized.

Summary

Public fields

final Uri

The Uri from which the unrecognized data was read.

Public constructors

Inherited fields

From androidx.media3.common.ParserException
final boolean

Whether the parsing error was caused by a bitstream not following the expected format.

final int

The data type of the parsed bitstream.

Inherited methods

From androidx.media3.common.ParserException
static ParserException
createForMalformedContainer(
    @Nullable String message,
    @Nullable Throwable cause
)

Creates a new instance for which contentIsMalformed is true and dataType is DATA_TYPE_MEDIA.

static ParserException

Creates a new instance for which contentIsMalformed is true and dataType is DATA_TYPE_UNKNOWN.

static ParserException
createForMalformedManifest(
    @Nullable String message,
    @Nullable Throwable cause
)

Creates a new instance for which contentIsMalformed is true and dataType is DATA_TYPE_MANIFEST.

static ParserException

Creates a new instance for which contentIsMalformed is false and dataType is DATA_TYPE_MANIFEST.

static ParserException

Creates a new instance for which contentIsMalformed is false and dataType is DATA_TYPE_MEDIA.

@Nullable String
From java.lang.Throwable
synchronized final void
synchronized Throwable
synchronized Throwable
String
String
StackTraceElement[]
synchronized final Throwable[]
synchronized Throwable
void
void
setStackTrace(StackTraceElement[] stackTrace)
String

Public fields

uri

public final Uri uri

The Uri from which the unrecognized data was read.

Public constructors

UnrecognizedInputFormatException

public UnrecognizedInputFormatException(String message, Uri uri)
Parameters
String message

The detail message for the exception.

Uri uri

The Uri from which the unrecognized data was read.