Language

SampleFlags Enum

Definition

This enumeration supports a bitwise combination of its member values.

[System.Flags]
public enum SampleFlags
[<System.Flags>]
type SampleFlags = 
Inheritance
SampleFlags
Attributes

Fields

Name Value Description
SampleFlagDecodeOnly -2147483648

This constant was deprecated in API level 37.1. This flag is no longer supported and will be ignored.

Indicates that the sample should be decoded but not rendered.

Android reference for android.media.MediaParser.SAMPLE_FLAG_DECODE_ONLY.

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.

SampleFlagKeyFrame 1

Indicates that the sample holds a synchronization sample.

Android reference for android.media.MediaParser.SAMPLE_FLAG_KEY_FRAME.

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.

SampleFlagHasSupplementalData 268435456

Indicates that the sample has supplemental data. Samples will not have this flag set unless the "android.media.mediaparser.includeSupplementalData" parameter is set to true via setParameter(String, Object). Samples with supplemental data have the following sample data format: If the "android.media.mediaparser.inBandCryptoInfo" parameter is set, all encryption information. (4 bytes) sample_data_size: The size of the actual sample data, not including supplemental data or encryption information. ( sample_data_size bytes): The media sample data. (remaining bytes) The supplemental data.

Android reference for android.media.MediaParser.SAMPLE_FLAG_HAS_SUPPLEMENTAL_DATA.

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.

SampleFlagLastSample 536870912

Indicates that the sample is known to contain the last media sample of the stream.

Android reference for android.media.MediaParser.SAMPLE_FLAG_LAST_SAMPLE.

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.

SampleFlagEncrypted 1073741824

Indicates that the sample is (at least partially) encrypted.

Android reference for android.media.MediaParser.SAMPLE_FLAG_ENCRYPTED.

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.

Applies to