Share via


MediaDrm.RequiresSecureDecoder Method

Definition

Overloads

RequiresSecureDecoder(String)

Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type at the default security level.

RequiresSecureDecoder(String, Int32)

Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type at the given security level.

RequiresSecureDecoder(String)

Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type at the default security level.

[Android.Runtime.Register("requiresSecureDecoder", "(Ljava/lang/String;)Z", "", ApiSince=31)]
public bool RequiresSecureDecoder (string mime);
[<Android.Runtime.Register("requiresSecureDecoder", "(Ljava/lang/String;)Z", "", ApiSince=31)>]
member this.RequiresSecureDecoder : string -> bool

Parameters

mime
String

The mime type of the media data. Please use #isCryptoSchemeSupported(UUID, String) to query mime type support separately; for unsupported mime types the return value of #requiresSecureDecoder(String) is crypto scheme dependent.

Returns

Attributes

Remarks

Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type at the default security level. The default security level is defined as the highest security level supported on the device.

Java documentation for android.media.MediaDrm.requiresSecureDecoder(java.lang.String).

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

RequiresSecureDecoder(String, Int32)

Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type at the given security level.

[Android.Runtime.Register("requiresSecureDecoder", "(Ljava/lang/String;I)Z", "", ApiSince=31)]
public bool RequiresSecureDecoder (string mime, int level);
[<Android.Runtime.Register("requiresSecureDecoder", "(Ljava/lang/String;I)Z", "", ApiSince=31)>]
member this.RequiresSecureDecoder : string * int -> bool

Parameters

mime
String

The mime type of the media data. Please use #isCryptoSchemeSupported(UUID, String, int) to query mime type support separately; for unsupported mime types the return value of #requiresSecureDecoder(String, int) is crypto scheme dependent.

level
Int32

a security level between #SECURITY_LEVEL_SW_SECURE_CRYPTO and #SECURITY_LEVEL_HW_SECURE_ALL. Otherwise the special value #getMaxSecurityLevel() is also permitted; use #getMaxSecurityLevel() to indicate the maximum security level supported by the device.

Returns

Attributes

Remarks

Query if the crypto scheme requires the use of a secure decoder to decode data of the given mime type at the given security level.

Java documentation for android.media.MediaDrm.requiresSecureDecoder(java.lang.String, int).

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