public static final class MediaCodec.CodecException extends IllegalStateException
Modifier and Type | Class and Description |
---|---|
static interface |
MediaCodec.CodecException.ReasonCode |
Modifier and Type | Field and Description |
---|---|
static int |
ERROR_INSUFFICIENT_RESOURCE
This indicates required resource was not able to be allocated.
|
static int |
ERROR_RECLAIMED
This indicates the resource manager reclaimed the media resource used by the codec.
|
Modifier and Type | Method and Description |
---|---|
String |
getDiagnosticInfo()
Retrieve a developer-readable diagnostic information string
associated with the exception.
|
int |
getErrorCode()
Retrieve the error code associated with a CodecException
|
boolean |
isRecoverable()
Returns true if the codec cannot proceed further,
but can be recovered by stopping, configuring,
and starting again.
|
boolean |
isTransient()
Returns true if the codec exception is a transient issue,
perhaps due to resource constraints, and that the method
(or encoding/decoding) may be retried at a later time.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int ERROR_INSUFFICIENT_RESOURCE
public static final int ERROR_RECLAIMED
With this exception, the codec must be released, as it has moved to terminal state.
public boolean isTransient()
public boolean isRecoverable()
public int getErrorCode()
public String getDiagnosticInfo()