MediaFormat.KeySecurityModel Field
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
A key describing the requested security model as flags.
[Android.Runtime.Register("KEY_SECURITY_MODEL", ApiSince=36)]
public const string KeySecurityModel;
[<Android.Runtime.Register("KEY_SECURITY_MODEL", ApiSince=36)>]
val mutable KeySecurityModel : string
Field Value
- Attributes
Remarks
A key describing the requested security model as flags.
The associated value is a flag of the following values: FLAG_SECURITY_MODEL_SANDBOXED
, FLAG_SECURITY_MODEL_MEMORY_SAFE
, The default value is FLAG_SECURITY_MODEL_SANDBOXED
.
When passed to MediaCodecList#findDecoderForFormat
or MediaCodecList#findEncoderForFormat
, MediaCodecList filters the security model of the codecs according to this flag value.
When passed to MediaCodec#configure
, MediaCodec verifies the security model matches the flag value passed, and throws java.lang.IllegalArgumentException
if the model does not match.
Java documentation for android.media.MediaFormat.KEY_SECURITY_MODEL
.
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.