Class VideoFrameProcessingException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- com.google.android.exoplayer2.util.VideoFrameProcessingException
-
- All Implemented Interfaces:
Serializable
@Deprecated public final class VideoFrameProcessingException extends Exception
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.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description longpresentationTimeUsDeprecated.The microsecond timestamp of the frame being processed while the exception occurred orC.TIME_UNSETif 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 VideoFrameProcessingExceptionfrom(Exception exception)Deprecated.Wraps the given exception in aVideoFrameProcessingExceptionif it is not already aVideoFrameProcessingExceptionand returns the exception otherwise.static VideoFrameProcessingExceptionfrom(Exception exception, long presentationTimeUs)Deprecated.Wraps the given exception in aVideoFrameProcessingExceptionwith the given timestamp if it is not already aVideoFrameProcessingExceptionand returns the exception otherwise.-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Field Detail
-
presentationTimeUs
public final long presentationTimeUs
Deprecated.The microsecond timestamp of the frame being processed while the exception occurred orC.TIME_UNSETif unknown.
-
-
Constructor Detail
-
VideoFrameProcessingException
public VideoFrameProcessingException(String message)
Deprecated.Creates an instance.- Parameters:
message- The detail message for this exception.
-
VideoFrameProcessingException
public VideoFrameProcessingException(String 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 message, Throwable cause)
Deprecated.Creates an instance.- Parameters:
message- The detail message for this exception.cause- The cause of this exception.
-
VideoFrameProcessingException
public VideoFrameProcessingException(String message, Throwable 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 cause)
Deprecated.Creates an instance.- Parameters:
cause- The cause of this exception.
-
VideoFrameProcessingException
public VideoFrameProcessingException(Throwable 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 from(Exception exception)
Deprecated.Wraps the given exception in aVideoFrameProcessingExceptionif it is not already aVideoFrameProcessingExceptionand returns the exception otherwise.
-
from
public static VideoFrameProcessingException from(Exception exception, long presentationTimeUs)
Deprecated.Wraps the given exception in aVideoFrameProcessingExceptionwith the given timestamp if it is not already aVideoFrameProcessingExceptionand returns the exception otherwise.
-
-