SurfaceEntity.SurfaceProtection


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

Public companion properties

SurfaceEntity.SurfaceProtection

The Surface content is not protected.

SurfaceEntity.SurfaceProtection

The Surface content is protected.

Public functions

open String

Public companion properties

NONE

val NONESurfaceEntity.SurfaceProtection

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.

PROTECTED

val PROTECTEDSurfaceEntity.SurfaceProtection

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 functions

toString

open fun toString(): String