VideoFrameProcessingException


@UnstableApi
class VideoFrameProcessingException : Exception


Thrown when an exception occurs while preparing an Effect, or applying an Effect to video frames.

Summary

Public constructors

Creates an instance.

Creates an instance.

VideoFrameProcessingException(cause: Throwable!, presentationTimeUs: Long)

Creates an instance.

Creates an instance.

VideoFrameProcessingException(message: String!, presentationTimeUs: Long)

Creates an instance.

VideoFrameProcessingException(
    message: String!,
    cause: Throwable!,
    presentationTimeUs: Long
)

Creates an instance.

Public functions

java-static VideoFrameProcessingException!
from(exception: Exception!)

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

java-static VideoFrameProcessingException!
from(exception: Exception!, presentationTimeUs: Long)

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

Public properties

Long

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

Public constructors

VideoFrameProcessingException

VideoFrameProcessingException(cause: Throwable!)

Creates an instance.

Parameters
cause: Throwable!

The cause of this exception.

VideoFrameProcessingException

VideoFrameProcessingException(message: String!)

Creates an instance.

Parameters
message: String!

The detail message for this exception.

VideoFrameProcessingException

VideoFrameProcessingException(cause: Throwable!, presentationTimeUs: Long)

Creates an instance.

Parameters
cause: Throwable!

The cause of this exception.

presentationTimeUs: Long

The timestamp of the frame for which the exception occurred.

VideoFrameProcessingException

VideoFrameProcessingException(message: String!, cause: Throwable!)

Creates an instance.

Parameters
message: String!

The detail message for this exception.

cause: Throwable!

The cause of this exception.

VideoFrameProcessingException

VideoFrameProcessingException(message: String!, presentationTimeUs: Long)

Creates an instance.

Parameters
message: String!

The detail message for this exception.

presentationTimeUs: Long

The timestamp of the frame for which the exception occurred.

VideoFrameProcessingException

VideoFrameProcessingException(
    message: String!,
    cause: Throwable!,
    presentationTimeUs: Long
)

Creates an instance.

Parameters
message: String!

The detail message for this exception.

cause: Throwable!

The cause of this exception.

presentationTimeUs: Long

The timestamp of the frame for which the exception occurred.

Public functions

from

java-static fun from(exception: Exception!): VideoFrameProcessingException!

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

from

java-static fun from(exception: Exception!, presentationTimeUs: Long): VideoFrameProcessingException!

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

Public properties

presentationTimeUs

val presentationTimeUsLong

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