VideoFrameProcessingException
@UnstableApi
public final class VideoFrameProcessingException extends Exception
| java.lang.Object | |||
| ↳ | kotlin.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | androidx.media3.common.VideoFrameProcessingException |
Thrown when an exception occurs while preparing an Effect, or applying an Effect to video frames.
Summary
Public fields |
|
|---|---|
final long |
The microsecond timestamp of the frame being processed while the exception occurred or |
Public constructors |
|---|
|
Creates an instance. |
VideoFrameProcessingException(String message)Creates an instance. |
VideoFrameProcessingException(Throwable cause, long presentationTimeUs)Creates an instance. |
VideoFrameProcessingException(String message, Throwable cause)Creates an instance. |
VideoFrameProcessingException(String message, long presentationTimeUs)Creates an instance. |
VideoFrameProcessingException(Creates an instance. |
Public methods |
|
|---|---|
static VideoFrameProcessingException |
Wraps the given exception in a |
static VideoFrameProcessingException |
Wraps the given exception in a |
Inherited methods |
|---|
Public fields
presentationTimeUs
public final long presentationTimeUs
The microsecond timestamp of the frame being processed while the exception occurred or TIME_UNSET if unknown.
Public constructors
VideoFrameProcessingException
public VideoFrameProcessingException(Throwable cause)
Creates an instance.
| Parameters | |
|---|---|
Throwable cause |
The cause of this exception. |
VideoFrameProcessingException
public VideoFrameProcessingException(String message)
Creates an instance.
| Parameters | |
|---|---|
String message |
The detail message for this exception. |
VideoFrameProcessingException
public VideoFrameProcessingException(Throwable cause, long presentationTimeUs)
Creates an instance.
| Parameters | |
|---|---|
Throwable cause |
The cause of this exception. |
long presentationTimeUs |
The timestamp of the frame for which the exception occurred. |
VideoFrameProcessingException
public VideoFrameProcessingException(String message, Throwable cause)
Creates an instance.
VideoFrameProcessingException
public VideoFrameProcessingException(String message, long presentationTimeUs)
Creates an instance.
| Parameters | |
|---|---|
String message |
The detail message for this exception. |
long presentationTimeUs |
The timestamp of the frame for which the exception occurred. |
VideoFrameProcessingException
public VideoFrameProcessingException(
String message,
Throwable cause,
long presentationTimeUs
)
Creates an instance.
Public methods
from
public static VideoFrameProcessingException from(Exception exception)
Wraps the given exception in a VideoFrameProcessingException if it is not already a VideoFrameProcessingException and returns the exception otherwise.
from
public static VideoFrameProcessingException from(Exception exception, long presentationTimeUs)
Wraps the given exception in a VideoFrameProcessingException with the given timestamp if it is not already a VideoFrameProcessingException and returns the exception otherwise.