UnrecognizedInputFormatException


@UnstableApi
class UnrecognizedInputFormatException : ParserException


Thrown if the input format was not recognized.

Summary

Public constructors

@InlineMe(replacement = "this(message, uri, ImmutableList.of())", imports = "com.google.common.collect.ImmutableList")
UnrecognizedInputFormatException(message: String!, uri: Uri!)

This function is deprecated.

Use UnrecognizedInputFormatException instead.

UnrecognizedInputFormatException(
    message: String!,
    uri: Uri!,
    sniffFailures: (Mutable)List<SniffFailure!>!
)

Constructs a new instance.

Public properties

ImmutableList<SniffFailure!>!

Sniff failures from getSniffFailureDetails from any extractors that were checked while trying to recognize the input data.

Uri!

The Uri from which the unrecognized data was read.

Inherited functions

From androidx.media3.common.ParserException
java-static ParserException!

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

java-static ParserException!

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

java-static ParserException!

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

java-static ParserException!
createForManifestWithUnsupportedFeature(
    message: String?,
    cause: Throwable?
)

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

java-static ParserException!

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

String?
From java.lang.Throwable

Inherited properties

From androidx.media3.common.ParserException
Boolean

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

Int

The data type of the parsed bitstream.

Public constructors

UnrecognizedInputFormatException

@InlineMe(replacement = "this(message, uri, ImmutableList.of())", imports = "com.google.common.collect.ImmutableList")
UnrecognizedInputFormatException(message: String!, uri: Uri!)

UnrecognizedInputFormatException

UnrecognizedInputFormatException(
    message: String!,
    uri: Uri!,
    sniffFailures: (Mutable)List<SniffFailure!>!
)

Constructs a new instance.

Parameters
message: String!

The detail message for the exception.

uri: Uri!

The Uri from which the unrecognized data was read.

sniffFailures: (Mutable)List<SniffFailure!>!

Sniff failures from any extractors that were used to sniff the data while trying to recognize it.

Public properties

sniffFailures

val sniffFailuresImmutableList<SniffFailure!>!

Sniff failures from getSniffFailureDetails from any extractors that were checked while trying to recognize the input data.

May be empty if no extractors provided additional sniffing failure details.

uri

val uriUri!

The Uri from which the unrecognized data was read.