public final class C


Defines constants used by the library.

Summary

Nested types

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.AudioAllowedCapturePolicy

Capture policies for audio attributes.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.AudioContentType

Content types for audio attributes.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(flag = true, value = )
public annotation C.AudioFlags

Flags for audio attributes.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.AudioUsage

Usage types for audio attributes.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.AuxiliaryTrackType

Auxiliary track types.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(flag = true, value = )
public annotation C.BufferFlags

Flags which can apply to a buffer containing a media sample.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.ColorRange

Video color range.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.ColorSpace

Video color spaces, also referred to as color standards.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.ColorTransfer

Video/image color transfer characteristics.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.ContentType

Represents a streaming or other media type.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
@UnstableApi
public annotation C.CryptoMode

Crypto modes for a codec.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(open = true, value = )
public annotation C.CryptoType

Types of crypto implementation.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(open = true, value = )
public annotation C.DataType

Represents a type of data.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.Encoding

Represents an audio encoding, or an invalid or unset value.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@UnstableApi
@IntDef(value = )
public annotation C.FirstFrameState

State of the first frame in a video renderer.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.FormatSupport

Level of support for a format.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.NetworkType

Network connection type.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.PcmEncoding

Represents a PCM audio encoding, or an invalid or unset value.

@Documented
@UnstableApi
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(open = true, value = )
public annotation C.Priority

A value indicating the priority of a operation.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.Projection

Video projection types.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(flag = true, value = )
public annotation C.RoleFlags

Track role flags.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(flag = true, value = )
public annotation C.SelectionFlags

Track selection flags.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(open = true, value = )
public annotation C.SelectionReason

Represents a reason for selection.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation C.SpatializationBehavior

Represents the behavior affecting whether spatialization will be used.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
public annotation C.StereoMode

The stereo mode for 360/3D/VR videos.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.StreamType

Stream types for an android.media.AudioTrack.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation C.TextureMinFilter

Texture filtering algorithm for minification.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(open = true, value = )
public annotation C.TrackType

Represents a type of media track.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.VideoChangeFrameRateStrategy

Strategies for calling setFrameRate.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(flag = true, value = )
public annotation C.VideoCodecFlags

Flags which represent a set of video codecs.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation C.VideoOutputMode

Video decoder output modes.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.VideoScalingMode

Video scaling modes for MediaCodec-based renderers.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(flag = true, value = )
public annotation C.VolumeFlags

Volume flags to be used when setting or adjusting device volume.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = )
@IntDef(value = )
public annotation C.WakeMode

Mode specifying whether the player should hold a WakeLock and a WifiLock.

Constants

static final int

See ALLOW_CAPTURE_BY_ALL.

static final int

See ALLOW_CAPTURE_BY_NONE.

static final int

See ALLOW_CAPTURE_BY_SYSTEM.

static final int

See CONTENT_TYPE_MOVIE.

static final int

See CONTENT_TYPE_MUSIC.

static final int

See CONTENT_TYPE_SONIFICATION.

static final int

See CONTENT_TYPE_SPEECH.

static final int

See CONTENT_TYPE_UNKNOWN.

static final int

Represents an unset android.media.AudioTrack session identifier.

static final int

An inverse encoded depth video track.

static final int

A linear encoded depth video track.

static final int

A timed metadata of depth video track.

static final int

The original video track without any depth based effects applied.

static final int

Not an auxiliary track or an auxiliary track with an undefined type.

static final int

The number of bits per byte.

static final int

Indicates that a buffer is (at least partially) encrypted.

static final int

Flag for empty buffers that signal that the end of the stream was reached.

static final int

Indicates that a buffer is known to contain the first media sample of the stream.

static final int

Indicates that a buffer has supplemental data.

static final int

Indicates that a buffer holds a synchronization sample.

static final int

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

static final int

Indicates that no other buffers depend on the data in this buffer.

static final int

The number of bytes per float.

static final String

"cbc1" scheme type name as defined in ISO/IEC 23001-7:2016.

static final String

"cbcs" scheme type name as defined in ISO/IEC 23001-7:2016.

static final String

"cenc" scheme type name as defined in ISO/IEC 23001-7:2016.

static final String

"cens" scheme type name as defined in ISO/IEC 23001-7:2016.

static final UUID

UUID for the ClearKey DRM scheme.

static final int

See COLOR_RANGE_FULL.

static final int

See COLOR_RANGE_LIMITED.

static final int

See COLOR_STANDARD_BT2020.

static final int

See COLOR_STANDARD_BT601_PAL.

static final int

See COLOR_STANDARD_BT709.

static final int

See TRANSFER_GAMMA2_2.

static final int

See COLOR_TRANSFER_HLG.

static final int

See COLOR_TRANSFER_LINEAR.

static final int

See COLOR_TRANSFER_SDR_VIDEO.

static final int

See TRANSFER_SRGB.

static final int

See COLOR_TRANSFER_ST2084.

static final UUID

UUID for the W3C Common PSSH box.

static final int

Value representing a DASH manifest.

static final int

Value representing an HLS manifest.

static final int

This field is deprecated.

Use AUDIO_CONTENT_TYPE_MOVIE instead.

static final int

This field is deprecated.

Use AUDIO_CONTENT_TYPE_MUSIC instead.

static final int

Value representing files other than DASH, HLS or Smooth Streaming manifests, or RTSP URIs.

static final int

Value representing an RTSP stream.

static final int

This field is deprecated.

Use AUDIO_CONTENT_TYPE_SONIFICATION instead.

static final int

This field is deprecated.

Use AUDIO_CONTENT_TYPE_SPEECH instead.

static final int

Value representing a Smooth Streaming manifest.

static final int

This field is deprecated.

Use AUDIO_CONTENT_TYPE_UNKNOWN instead.

static final int

See CRYPTO_MODE_AES_CBC.

static final int

See CRYPTO_MODE_AES_CTR.

static final int

See CRYPTO_MODE_UNENCRYPTED.

static final int

Applications or extensions may define custom CRYPTO_TYPE_* constants greater than or equal to this value.

static final int

Framework crypto in which a MediaCodec is configured with a MediaCrypto.

static final int

No crypto.

static final int

An unsupported crypto type.

static final int

A data type constant for ads loader data.

static final int

Applications or extensions may define custom DATA_TYPE_* constants greater than or equal to this value.

static final int

A data type constant for drm or encryption data.

static final int

A data type constant for a manifest file.

static final int

A data type constant for media, typically containing media samples.

static final int

A data type constant for media, typically containing only initialization data.

static final int

A data type constant for live progressive media streams, typically containing media samples.

static final int

A data type constant for time synchronization data.

static final int

A data type constant for data of unknown or unspecified type.

static final int

A default size in bytes for an individual allocation that forms part of a larger buffer.

static final long

A default maximum position for which a seek to previous will seek to the previous window, in milliseconds.

static final long

A default seek back increment, in milliseconds.

static final long

A default seek forward increment, in milliseconds.

static final int

See ENCODING_AAC_ELD.

static final int

AAC Error Resilient Bit-Sliced Arithmetic Coding.

static final int

See ENCODING_AAC_HE_V1.

static final int

See ENCODING_AAC_HE_V2.

static final int

See ENCODING_AAC_LC.

static final int

See ENCODING_AAC_XHE.

static final int

See ENCODING_AC3.

static final int

See ENCODING_AC4.

static final int

See ENCODING_DOLBY_TRUEHD.

static final int

See ENCODING_DTS.

static final int

See ENCODING_DTS_HD.

static final int

See ENCODING_DTS_UHD_P2.

static final int

See ENCODING_E_AC3.

static final int

See ENCODING_E_AC3_JOC.

static final int

See ENCODING_INVALID.

static final int

See ENCODING_MP3.

static final int

See ENCODING_OPUS.

static final int

See ENCODING_PCM_16BIT.

static final int

Like ENCODING_PCM_16BIT, but with the bytes in big endian order.

static final int

PCM encoding with 24 bits per sample.

static final int

Like ENCODING_PCM_24BIT but with the bytes in big endian order.

static final int

PCM encoding with 32 bits per sample.

static final int

Like ENCODING_PCM_32BIT but with the bytes in big endian order.

static final int

See ENCODING_PCM_8BIT.

static final int

See ENCODING_PCM_FLOAT.

static final int

The first frame was not rendered after the last reset, output surface or stream change.

static final int

The first frame was not rendered after the last stream change.

static final int

The first frame was not rendered yet, and is only allowed to be rendered if the renderer is started.

static final int

The first frame was rendered.

static final int

See FLAG_AUDIBILITY_ENFORCED.

static final int

Formats with the same MIME type are supported, but the properties of this format exceed the declared capabilities.

static final int

The format is supported.

static final int

Formats with the same MIME type are supported, but this format's DRM protection is not supported.

static final int

Formats with the same top-level type are generally supported, but not this format or any other format with the same MIME type because the sub-type is not supported.

static final int

The format is unsupported, because no formats with the same top-level type are supported or there is only specialized support for different MIME types of the same top-level type.

static final int

Represents an unset or unknown index or byte position.

static final String

Represents an undetermined language as an ISO 639-2 language code.

static final int

Represents an unset or unknown length.

static final int

A non-realtime (as fast as possible) codec priority.

static final int

A realtime codec priority.

static final long

The number of microseconds in one second.

static final long

The number of milliseconds in one second.

static final long

The number of nanoseconds in one second.

static final int

Network type for a 2G cellular connection.

static final int

Network type for a 3G cellular connection.

static final int

Network type for a 4G cellular connection.

static final int

Network type for a 5G non-stand-alone (NSA) cellular connection.

static final int

Network type for a 5G stand-alone (SA) cellular connection.

static final int

Network type for cellular connections which cannot be mapped to one of NETWORK_TYPE_2G, NETWORK_TYPE_3G, or NETWORK_TYPE_4G.

static final int

Network type for an Ethernet connection.

static final int

No network connection.

static final int

Network type for other connections which are not Wifi or cellular (e.g. VPN, Bluetooth).

static final int

Unknown network type.

static final int

Network type for a Wifi connection.

static final int

Represents an unset or unknown percentage.

static final UUID

UUID for the PlayReady DRM scheme.

static final int

This field is deprecated.

Use INDEX_UNSET.

static final int

Priority for media downloading unrelated to active playback.

static final int

The maximum supported Priority.

static final int

Priority for active media playback.

static final int

Priority for preloading media playback resources before the playback becomes active.

static final int

Priority for processing media in the background (for example, when the user is not waiting for the processing to complete).

static final int

Priority for processing media in the foreground (for example, while the user is waiting for the processing to complete).

static final int

Cube map projection.

static final int

Equirectangular spherical projection.

static final int

3-D mesh projection.

static final int

Conventional rectangular projection.

static final float
RATE_UNSET = -3.4028235E38f

Represents an unset or unknown rate.

static final int

Represents an unset or unknown integer rate.

static final int

A return value for methods where a buffer was read.

static final int

A return value for methods where the end of an input was encountered.

static final int

A return value for methods where a format was read.

static final int

A return value for methods where the length of parsed data exceeds the maximum length allowed.

static final int

A return value for methods where nothing was read.

static final int

Indicates an alternate track.

static final int

Indicates an auxiliary track.

static final int

Indicates the track contains captions.

static final int

Indicates the track contains commentary, for example from the director.

static final int

Indicates the track contains a textual description of music and sound.

static final int

Indicates the track contains an audio or textual description of a video track.

static final int

Indicates the track is in a different language from the original, for example dubbed audio or translated captions.

static final int

Indicates the track contains a text that has been edited for ease of reading.

static final int

Indicates the track contains information about a current emergency.

static final int

Indicates the track is designed for improved intelligibility of dialogue.

static final int

Indicates a main track.

static final int

Indicates the track contains a visual sign-language interpretation of an audio track.

static final int

Indicates the track contains subtitles.

static final int

Indicates a supplementary track, meaning the track has lower importance than the main track(s).

static final int

Indicates the track contains a transcription of spoken dialog.

static final int

Indicates the track is intended for trick play.

static final String

The name of the sans-serif font family.

static final int

Indicates that the player may choose to play the track in absence of an explicit user preference.

static final int

Indicates that the track should be selected if user preferences do not state otherwise.

static final int

Indicates that the track should be selected if its language matches the language of the selected audio track and user preferences do not state otherwise.

static final int

A selection reason constant for an adaptive track selection.

static final int

Applications or extensions may define custom SELECTION_REASON_* constants greater than or equal to this value.

static final int

A selection reason constant for an initial track selection.

static final int

A selection reason constant for an manual (i.e. user initiated) track selection.

static final int

A selection reason constant for a trick play track selection.

static final int

A selection reason constant for selections whose reasons are unknown or unspecified.

static final String

The name of the serif font family.

static final int

See SPATIALIZATION_BEHAVIOR_AUTO.

static final int

See SPATIALIZATION_BEHAVIOR_NEVER.

static final String

The