Język

ErrorCode Enum

Definition

public enum ErrorCode
type ErrorCode = 
Inheritance
ErrorCode

Fields

Name Value Description
Unknown 0

This constant was deprecated in API level 31. Unused.

The SessionException has an unknown error code.

Android reference for android.media.MediaDrm.SessionException.ERROR_UNKNOWN.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

ResourceContention 1

This constant was deprecated in API level 31. Please use isTransient() instead of comparing the return value of getErrorCode() against SessionException.ERROR_RESOURCE_CONTENTION.

This indicates that apps using MediaDrm sessions are temporarily exceeding the capacity of available crypto resources. The app should retry the operation later.

Android reference for android.media.MediaDrm.SessionException.ERROR_RESOURCE_CONTENTION.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to