# UnrecognizedInputFormatException

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/source/UnrecognizedInputFormatException.java+class:androidx.media3.exoplayer.source.UnrecognizedInputFormatException)

*** ** * ** ***


```
@UnstableApi
class UnrecognizedInputFormatException : ParserException
```

<br />

|---|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) ||||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) |||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) ||||
|   |   | ↳ | [java.io.IOException](https://developer.android.com/reference/java/io/IOException.html) |||
|   |   |   | ↳ | [androidx.media3.common.ParserException](https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException) ||
|   |   |   |   | ↳ | [androidx.media3.exoplayer.source.UnrecognizedInputFormatException](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException) |

*** ** * ** ***

Thrown if the input format was not recognized.

## Summary

| ### Public constructors |
|---|
| `@https://checkerframework.org/api/com/google/errorprone/annotations/InlineMe.html(replacement = "this(message, uri, ImmutableList.of())", imports = "com.google.common.collect.ImmutableList") [UnrecognizedInputFormatException](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#UnrecognizedInputFormatException(java.lang.String,android.net.Uri))(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, uri: https://developer.android.com/reference/android/net/Uri.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#UnrecognizedInputFormatException(java.lang.String,android.net.Uri,java.util.List<? extends androidx.media3.extractor.SniffFailure>)` instead. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#UnrecognizedInputFormatException(java.lang.String,android.net.Uri,java.util.List<? extends androidx.media3.extractor.SniffFailure>)( message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, uri: https://developer.android.com/reference/android/net/Uri.html!, sniffFailures: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/extractor/SniffFailure!>! )` Constructs a new instance. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#getMessage()()` |

| ### Public properties |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/kotlin/androidx/media3/extractor/SniffFailure!>!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#sniffFailures()` Sniff failures from `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Extractor#getSniffFailureDetails()` from any extractors that were checked while trying to recognize the input data. |
| `https://developer.android.com/reference/android/net/Uri.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#uri()` The `https://developer.android.com/reference/android/net/Uri.html` from which the unrecognized data was read. |

### Inherited functions

From [androidx.media3.common.ParserException](https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException) `java-static https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException!` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#createForMalformedContainer(java.lang.String,java.lang.Throwable)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?)`

Creates a new instance for which `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()` is true and `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#DATA_TYPE_MEDIA()`.
`java-static https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException!` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#createForMalformedDataOfUnknownType(java.lang.String,java.lang.Throwable)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?)`

Creates a new instance for which `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()` is true and `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#DATA_TYPE_UNKNOWN()`.
`java-static https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException!` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#createForMalformedManifest(java.lang.String,java.lang.Throwable)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?)`

Creates a new instance for which `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()` is true and `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#DATA_TYPE_MANIFEST()`.
`java-static https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException!` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#createForMalformedSteeringManifest(java.lang.String,java.lang.Throwable)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?, cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?)`

Creates a new instance for which `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()` is true and `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#DATA_TYPE_STEERING_MANIFEST()`.
`java-static https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException!` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#createForManifestWithUnsupportedFeature(java.lang.String,java.lang.Throwable)(
message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?,
cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?
)`

Creates a new instance for which `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()` is false and `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#DATA_TYPE_MANIFEST()`.
`java-static https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException!` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#createForUnsupportedContainerFeature(java.lang.String)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?)`

Creates a new instance for which `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()` is false and `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#DATA_TYPE_MEDIA()`.
From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/add-suppressed.html(exception: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/fill-in-stack-trace.html()` `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-cause.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-localized-message.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-message.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-stack-trace.html()` `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!>!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-suppressed.html()` `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/init-cause.html(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/set-stack-trace.html(stackTrace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!)` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()`

### Inherited properties

From [androidx.media3.common.ParserException](https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#contentIsMalformed()`

Whether the parsing error was caused by a bitstream not following the expected format.
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/ParserException#dataType()`

The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.DataType` of the parsed bitstream.

## Public constructors

### UnrecognizedInputFormatException

```
@InlineMe(replacement = "this(message, uri, ImmutableList.of())", imports = "com.google.common.collect.ImmutableList")
[UnrecognizedInputFormatException](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#UnrecognizedInputFormatException(java.lang.String,android.net.Uri))(message: String!, uri: Uri!)
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/UnrecognizedInputFormatException#UnrecognizedInputFormatException(java.lang.String,android.net.Uri,java.util.List<? extends androidx.media3.extractor.SniffFailure>)` instead.

### UnrecognizedInputFormatException

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

Constructs a new instance.

| Parameters |
|---|---|
| `message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The detail message for the exception. |
| `uri: https://developer.android.com/reference/android/net/Uri.html!` | The `https://developer.android.com/reference/android/net/Uri.html` from which the unrecognized data was read. |
| `sniffFailures: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/extractor/SniffFailure!>!` | Sniff failures from any extractors that were used to sniff the data while trying to recognize it. |

## Public functions

### getMessage

```
fun getMessage(): String!
```

## Public properties

### sniffFailures

```
val sniffFailures: ImmutableList<SniffFailure!>!
```

Sniff failures from `https://developer.android.com/reference/kotlin/androidx/media3/extractor/Extractor#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 uri: Uri!
```

The `https://developer.android.com/reference/android/net/Uri.html` from which the unrecognized data was read.