Language

MediaFormatSecurityModel Enum

Definition

Specifies acceptable codec-security models as flags in a media-format request.

public enum MediaFormatSecurityModel
type MediaFormatSecurityModel = 
Inheritance
MediaFormatSecurityModel

Fields

Name Value Description
Sandboxed 1

Flag for MediaCodecInfo.SECURITY_MODEL_SANDBOXED.

Android reference for android.media.MediaFormat.FLAG_SECURITY_MODEL_SANDBOXED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

MemorySafe 2

Flag for MediaCodecInfo.SECURITY_MODEL_MEMORY_SAFE.

Android reference for android.media.MediaFormat.FLAG_SECURITY_MODEL_MEMORY_SAFE.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Remarks

Each flag is one shifted by its corresponding codec-model identifier: sandboxed uses bit value one and memory-safe uses bit value two. Do not substitute the unshifted MediaCodecSecurityModel values for this mask.

Applies to