SpatialExternalSurfaceProtection

value class SpatialExternalSurfaceProtection


Specifies if the Surface 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
SpatialExternalSurface
https

://developer.android.com/reference/android/media/MediaDrm

Summary

Public companion properties

SpatialExternalSurfaceProtection

The Surface content is not protected.

SpatialExternalSurfaceProtection

The Surface content is protected.

Public companion properties

None

val NoneSpatialExternalSurfaceProtection

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 SpatialExternalSurface will show the Surface content.

Protected

val ProtectedSpatialExternalSurfaceProtection

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 SpatialExternalSurface will redact the Surface content.