SurfaceEntity.SurfaceProtection


public final 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 fields

static final @NonNull SurfaceEntity.SurfaceProtection

The Surface content is not protected.

static final @NonNull SurfaceEntity.SurfaceProtection

The Surface content is protected.

Public methods

@NonNull String

Public fields

NONE

public static final @NonNull SurfaceEntity.SurfaceProtection NONE

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

public static final @NonNull SurfaceEntity.SurfaceProtection PROTECTED

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 methods

toString

public @NonNull String toString()