Back to Exoplayer

MergingMediaSource.IllegalMergeException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/MergingMediaSource.IllegalMergeException.html

latest3.5 KB
Original Source

Package com.google.android.exoplayer2.source

Class MergingMediaSource.IllegalMergeException


public static final classMergingMediaSource.IllegalMergeExceptionextends[IOException](https://developer.android.com/reference/java/io/IOException.html "class or interface in java.io")

Thrown when a MergingMediaSource cannot merge its sources. See Also:Serialized Form

Nested Class Summary

Nested Classes | Modifier and Type | Class | Description | | --- | --- | --- | | static interface | MergingMediaSource.IllegalMergeException.Reason | The reason the merge failed. |

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | @com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException.Reason int | reason | The reason the merge failed. | | static int | REASON_PERIOD_COUNT_MISMATCH | The sources have different period counts. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | IllegalMergeException​(@com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException.Reason int reason) | |

Method Summary

- 

Methods inherited from class java.lang.Throwable

addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Field Detail

- 

REASON_PERIOD_COUNT_MISMATCH

public static final int REASON_PERIOD_COUNT_MISMATCH

The sources have different period counts. See Also:Constant Field Values

- 

reason

public final @com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException.Reason int reason

The reason the merge failed.

Constructor Detail

- 

IllegalMergeException

public IllegalMergeException​(@com.google.android.exoplayer2.source.MergingMediaSource.IllegalMergeException.Reason int reason)

Parameters:reason - The reason the merge failed.