SurfaceEntity.SurfaceProtection


object 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

const Int

The Surface content is not protected.

const Int

The Surface content is protected.

Constants

SURFACE_PROTECTION_NONE

Added in 1.0.0-alpha07
const val SURFACE_PROTECTION_NONE = 0: Int

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
const val SURFACE_PROTECTION_PROTECTED = 1: Int

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.