SurfaceEntity.SurfaceProtection


public static class SurfaceEntity.SurfaceProtection


Specifies whether the Surface which backs this Entity should be backed by android.hardware.HardwareBuffers with the USAGE_PROTECTED_CONTENT flag set. These buffers support hardware paths for decoding protected content.

See also
https

://developer.android.com/reference/android/media/MediaDrm for more details.

Summary

Constants

static final int

The Surface content is not protected.

static final int

The Surface content is protected.

Constants

SURFACE_PROTECTION_NONE

Added in 1.0.0-alpha07
public static final int SURFACE_PROTECTION_NONE = 0

The Surface content is not protected. Non-protected content can be decoded into this surface. Protected content can not be decoded into this Surface. Screen captures of the SurfaceEntity will show the Surface content.

SURFACE_PROTECTION_PROTECTED

Added in 1.0.0-alpha07
public static final int SURFACE_PROTECTION_PROTECTED = 1

The Surface content is protected. Non-protected content can be decoded into this surface. Protected content can be decoded into this Surface. Screen captures of the SurfaceEntity will redact the Surface content.

Public fields

INSTANCE

Added in 1.0.0-alpha07
public static @NonNull SurfaceEntity.SurfaceProtection INSTANCE