Back to Exoplayer

VideoFrameProcessingException (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/VideoFrameProcessingException.html

latest7.8 KB
Original Source

Package com.google.android.exoplayer2.util

Class VideoFrameProcessingException


[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classVideoFrameProcessingExceptionextends[Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Thrown when an exception occurs while preparing an Effect, or applying an Effect to video frames. See Also:Serialized Form

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | long | presentationTimeUs | Deprecated.

The microsecond timestamp of the frame being processed while the exception occurred or C.TIME_UNSET if unknown. |

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | VideoFrameProcessingException​(String message) | Deprecated.

Creates an instance. | | VideoFrameProcessingException​(String message, long presentationTimeUs) | Deprecated.

Creates an instance. | | VideoFrameProcessingException​(String message, Throwable cause) | Deprecated.

Creates an instance. | | VideoFrameProcessingException​(String message, Throwable cause, long presentationTimeUs) | Deprecated.

Creates an instance. | | VideoFrameProcessingException​(Throwable cause) | Deprecated.

Creates an instance. | | VideoFrameProcessingException​(Throwable cause, long presentationTimeUs) | Deprecated.

Creates an instance. |

Method Summary

All Methods Static Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | static VideoFrameProcessingException | from​(Exception exception) | Deprecated.

Wraps the given exception in a VideoFrameProcessingException if it is not already a VideoFrameProcessingException and returns the exception otherwise. | | static VideoFrameProcessingException | from​(Exception exception, long presentationTimeUs) | Deprecated.

Wraps the given exception in a VideoFrameProcessingException with the given timestamp if it is not already a VideoFrameProcessingException and returns the exception otherwise. |

- 

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

- 

presentationTimeUs

public final long presentationTimeUs

Deprecated.

The microsecond timestamp of the frame being processed while the exception occurred or C.TIME_UNSET if unknown.

Constructor Detail

- 

VideoFrameProcessingException

public VideoFrameProcessingException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message)

Deprecated.

Creates an instance. Parameters:message - The detail message for this exception.

- 

VideoFrameProcessingException

public VideoFrameProcessingException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message,
                                     long presentationTimeUs)

Deprecated.

Creates an instance. Parameters:message - The detail message for this exception.presentationTimeUs - The timestamp of the frame for which the exception occurred.

- 

VideoFrameProcessingException

public VideoFrameProcessingException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message,[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause)

Deprecated.

Creates an instance. Parameters:message - The detail message for this exception.cause - The cause of this exception.

- 

VideoFrameProcessingException

public VideoFrameProcessingException​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")message,[Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,
                                     long presentationTimeUs)

Deprecated.

Creates an instance. Parameters:message - The detail message for this exception.cause - The cause of this exception.presentationTimeUs - The timestamp of the frame for which the exception occurred.

- 

VideoFrameProcessingException

public VideoFrameProcessingException​([Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause)

Deprecated.

Creates an instance. Parameters:cause - The cause of this exception.

- 

VideoFrameProcessingException

public VideoFrameProcessingException​([Throwable](https://developer.android.com/reference/java/lang/Throwable.html "class or interface in java.lang")cause,
                                     long presentationTimeUs)

Deprecated.

Creates an instance. Parameters:cause - The cause of this exception.presentationTimeUs - The timestamp of the frame for which the exception occurred.

Method Detail

- 

from

public static[VideoFrameProcessingException](VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")from​([Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")exception)

Deprecated.

Wraps the given exception in a VideoFrameProcessingException if it is not already a VideoFrameProcessingException and returns the exception otherwise.

- 

from

public static[VideoFrameProcessingException](VideoFrameProcessingException.html "class in com.google.android.exoplayer2.util")from​([Exception](https://developer.android.com/reference/java/lang/Exception.html "class or interface in java.lang")exception,
                                                 long presentationTimeUs)

Deprecated.

Wraps the given exception in a VideoFrameProcessingException with the given timestamp if it is not already a VideoFrameProcessingException and returns the exception otherwise.