class C


Defines constants used by the library.

Summary

Nested types

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

Capture policies for audio attributes.

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

Content types for audio attributes.

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

Flags for audio attributes.

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

Usage types for audio attributes.

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

Auxiliary track types.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(flag = true, value = )
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])
annotation C.ColorRange

Video color range.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
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])
annotation C.ColorTransfer

Video/image color transfer characteristics.

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

Represents a streaming or other media type.

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

Crypto modes for a codec.

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

Types of crypto implementation.

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

Represents a type of data.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
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 = )
annotation C.FirstFrameState

State of the first frame in a video renderer.

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

Level of support for a format.

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

Network connection type.

@UnstableApi
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = [Format.NO_VALUE])
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 = )
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])
annotation C.Projection

Video projection types.

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

Track role flags.

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

Track selection flags.

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

Represents a reason for selection.

@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
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])
annotation C.StereoMode

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

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

Stream types for an android.media.AudioTrack.

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

Represents a type of media track.

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

Strategies for calling setFrameRate.

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

Video decoder output modes.

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

Video scaling modes for MediaCodec-based renderers.

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

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

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

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

Constants

const Int

See ALLOW_CAPTURE_BY_ALL.

const Int

See ALLOW_CAPTURE_BY_NONE.

const Int

See ALLOW_CAPTURE_BY_SYSTEM.

const Int

See CONTENT_TYPE_MOVIE.

const Int

See CONTENT_TYPE_MUSIC.

const Int

See CONTENT_TYPE_SONIFICATION.

const Int

See CONTENT_TYPE_SPEECH.

const Int

See CONTENT_TYPE_UNKNOWN.

const Int

Represents an unset android.media.AudioTrack session identifier.

const Int

An inverse encoded depth video track.

const Int

A linear encoded depth video track.

const Int

A timed metadata of depth video track.

const Int

The original video track without any depth based effects applied.

const Int

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

const Int

The number of bits per byte.

const Int

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

const Int

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

const Int

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

const Int

Indicates that a buffer has supplemental data.

const Int

Indicates that a buffer holds a synchronization sample.

const Int

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

const Int

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

const Int

The number of bytes per float.

const String!

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

const String!

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

const String!

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

const String!

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

const UUID!

UUID for the ClearKey DRM scheme.

const Int

See COLOR_RANGE_FULL.

const Int

See COLOR_RANGE_LIMITED.

const Int

See COLOR_STANDARD_BT2020.

const Int

See COLOR_STANDARD_BT601_PAL.

const Int

See COLOR_STANDARD_BT709.

const Int

See TRANSFER_GAMMA2_2.

const Int

See COLOR_TRANSFER_HLG.

const Int

See COLOR_TRANSFER_LINEAR.

const Int

See COLOR_TRANSFER_SDR_VIDEO.

const Int

See TRANSFER_SRGB.

const Int

See COLOR_TRANSFER_ST2084.

const UUID!

UUID for the W3C Common PSSH box.

const Int

Value representing a DASH manifest.

const Int

Value representing an HLS manifest.

const Int

This property is deprecated.

Use AUDIO_CONTENT_TYPE_MOVIE instead.

const Int

This property is deprecated.

Use AUDIO_CONTENT_TYPE_MUSIC instead.

const Int

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

const Int

Value representing an RTSP stream.

const Int

This property is deprecated.

Use AUDIO_CONTENT_TYPE_SONIFICATION instead.

const Int

This property is deprecated.

Use AUDIO_CONTENT_TYPE_SPEECH instead.

const Int

Value representing a Smooth Streaming manifest.

const Int

This property is deprecated.

Use AUDIO_CONTENT_TYPE_UNKNOWN instead.

const Int

See CRYPTO_MODE_AES_CBC.

const Int

See CRYPTO_MODE_AES_CTR.

const Int

See CRYPTO_MODE_UNENCRYPTED.

const Int

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

const Int

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

const Int

No crypto.

const Int

An unsupported crypto type.

const Int

A data type constant for ads loader data.

const Int

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

const Int

A data type constant for drm or encryption data.

const Int

A data type constant for a manifest file.

const Int

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

const Int

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

const Int

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

const Int

A data type constant for time synchronization data.

const Int

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

const Int

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

const Long

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

const Long

A default seek back increment, in milliseconds.

const Long

A default seek forward increment, in milliseconds.

const Int

See ENCODING_AAC_ELD.

const Int

AAC Error Resilient Bit-Sliced Arithmetic Coding.

const Int

See ENCODING_AAC_HE_V1.

const Int

See ENCODING_AAC_HE_V2.

const Int

See ENCODING_AAC_LC.

const Int

See ENCODING_AAC_XHE.

const Int

See ENCODING_AC3.

const Int

See ENCODING_AC4.

const Int

See ENCODING_DOLBY_TRUEHD.

const Int

See ENCODING_DTS.

const Int

See ENCODING_DTS_HD.

const Int

See ENCODING_DTS_UHD_P2.

const Int

See ENCODING_E_AC3.

const Int

See ENCODING_E_AC3_JOC.

const Int

See ENCODING_INVALID.

const Int

See ENCODING_MP3.

const Int

See ENCODING_OPUS.

const Int

See ENCODING_PCM_16BIT.

const Int

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

const Int

PCM encoding with 24 bits per sample.

const Int

Like ENCODING_PCM_24BIT but with the bytes in big endian order.

const Int

PCM encoding with 32 bits per sample.

const Int

Like ENCODING_PCM_32BIT but with the bytes in big endian order.

const Int

See ENCODING_PCM_8BIT.

const Int

See ENCODING_PCM_FLOAT.

const Int

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

const Int

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

const Int

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

const Int

The first frame was rendered.

const Int

See FLAG_AUDIBILITY_ENFORCED.

const Int

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

const Int

The format is supported.

const Int

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

const 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.

const 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.

const Int

Represents an unset or unknown index or byte position.

const String!

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

const Int

Represents an unset or unknown length.

const Int

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

const Int

A realtime codec priority.

const Long

The number of microseconds in one second.

const Long

The number of milliseconds in one second.

const Long

The number of nanoseconds in one second.

const Int

Network type for a 2G cellular connection.

const Int

Network type for a 3G cellular connection.

const Int

Network type for a 4G cellular connection.

const Int

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

const Int

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

const Int

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

const Int

Network type for an Ethernet connection.

const Int

No network connection.

const Int

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

const Int

Unknown network type.

const Int

Network type for a Wifi connection.

const Int

Represents an unset or unknown percentage.

const UUID!

UUID for the PlayReady DRM scheme.

const Int

This property is deprecated.

Use INDEX_UNSET.

const Int

Priority for media downloading unrelated to active playback.

const Int

The maximum supported Priority.

const Int

Priority for active media playback.

const Int

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

const Int

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

const Int

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

const Int

Cube map projection.

const Int

Equirectangular spherical projection.

const Int

3-D mesh projection.

const Int

Conventional rectangular projection.

const Float
RATE_UNSET = -3.4028235E38f

Represents an unset or unknown rate.

const Int

Represents an unset or unknown integer rate.

const Int

A return value for methods where a buffer was read.

const Int

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

const Int

A return value for methods where a format was read.

const Int

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

const Int

A return value for methods where nothing was read.

const Int

Indicates an alternate track.

const Int

Indicates an auxiliary track.

const Int

Indicates the track contains captions.

const Int

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

const Int

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

const Int

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

const Int

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

const Int

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

const Int

Indicates the track contains information about a current emergency.

const Int

Indicates the track is designed for improved intelligibility of dialogue.

const Int

Indicates a main track.

const Int

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

const Int

Indicates the track contains subtitles.

const Int

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

const Int

Indicates the track contains a transcription of spoken dialog.

const Int

Indicates the track is intended for trick play.

const String!

The name of the sans-serif font family.

const Int

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

const Int

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

const 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.

const Int

A selection reason constant for an adaptive track selection.

const Int

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

const Int

A selection reason constant for an initial track selection.

const Int

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

const Int

A selection reason constant for a trick play track selection.

const Int

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

const String!

The name of the serif font family.

const Int

See SPATIALIZATION_BEHAVIOR_AUTO.

const Int

See SPATIALIZATION_BEHAVIOR_NEVER.

const String!

The URI scheme used for content with server side ad insertion.

const Int

Indicates interleaved stereo layout with the left view being the primary view, used with 360/3D/VR videos.

const Int

Indicates interleaved stereo layout with the right view being the primary view, used with 360/3D/VR videos.

const Int

Indicates Left-Right stereo layout, used with 360/3D/VR videos.

const Int

Indicates Monoscopic stereo layout, used with 360/3D/VR videos.

const Int

Indicates a stereo layout where the left and right eyes have separate meshes, used with 360/3D/VR videos.

const Int

Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.

const Int

See STREAM_ALARM.

const Int

The default stream type used by audio renderers.

const Int

See STREAM_DTMF.

const Int

See STREAM_MUSIC.

const Int

See STREAM_NOTIFICATION.

const Int

See STREAM_RING.

const Int

See STREAM_SYSTEM.

const Int

See STREAM_VOICE_CALL.

const Long
TIME_END_OF_SOURCE = -9223372036854775808

Special constant representing a time corresponding to the end of a source.

const Long
TIME_UNSET = -9223372036854775807

Special constant representing an unset or unknown time or duration.

const Int

A type constant for audio tracks.

const Int

A type constant for camera motion tracks.

const Int

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

const Int

A type constant for tracks of some default type, where the type itself is unknown.

const Int

A type constant for image tracks.

const Int

A type constant for metadata tracks.

const Int

A type constant for a fake or empty track.

const Int

A type constant for text tracks.

const Int

A type constant for tracks of unknown type.

const Int

A type constant for video tracks.

const Int

This property is deprecated.

Use CONTENT_TYPE_DASH instead.

const Int

This property is deprecated.

Use CONTENT_TYPE_HLS instead.

const Int

This property is deprecated.

Use CONTENT_TYPE_OTHER instead.

const Int

This property is deprecated.

Use CONTENT_TYPE_RTSP instead.

const Int

This property is deprecated.

Use CONTENT_TYPE_SS instead.

const Int

See USAGE_ALARM.

const Int

See USAGE_ASSISTANCE_ACCESSIBILITY.

const Int

See USAGE_ASSISTANCE_NAVIGATION_GUIDANCE.

const Int

See USAGE_ASSISTANCE_SONIFICATION.

const Int

See USAGE_ASSISTANT.

const Int

See USAGE_GAME.

const Int

See USAGE_MEDIA.

const Int

See USAGE_NOTIFICATION.

const Int

See USAGE_NOTIFICATION_COMMUNICATION_DELAYED.

const Int

See USAGE_NOTIFICATION_COMMUNICATION_INSTANT.

const Int

See USAGE_NOTIFICATION_COMMUNICATION_REQUEST.

const Int

See USAGE_NOTIFICATION_EVENT.

const Int

See USAGE_NOTIFICATION_RINGTONE.

const Int

See USAGE_UNKNOWN.

const Int

See USAGE_VOICE_COMMUNICATION.

const Int

See USAGE_VOICE_COMMUNICATION_SIGNALLING.

const UUID!

The Nil UUID as defined by RFC4122.

const Int

Strategy to never call setFrameRate.

const Int

Strategy to call setFrameRate with CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS when the output frame rate is known.

const Int

Video decoder output mode is not set.

const Int

Video decoder output mode that renders 4:2:0 YUV planes directly to a surface.

const Int

Video decoder output mode that outputs raw 4:2:0 YUV planes.

const Int

A default video scaling mode for MediaCodec-based renderers.

const Int

See VIDEO_SCALING_MODE_SCALE_TO_FIT.

const Int

See VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING.

const Int

See FLAG_ALLOW_RINGER_MODES.

const Int

See FLAG_PLAY_SOUND.

const Int

See FLAG_REMOVE_SOUND_AND_VIBRATE.

const Int

See FLAG_SHOW_UI.

const Int

See FLAG_VIBRATE.

const Int

A wake mode that will cause the player to hold a android.os.PowerManager.WakeLock during playback.

const Int

A wake mode that will cause the player to hold a android.os.PowerManager.WakeLock and a android.net.wifi.WifiManager.WifiLock during playback.

const Int

A wake mode that will not cause the player to hold any locks.

const UUID!

UUID for the Widevine DRM scheme.

Public functions

java-static Int
@UnstableApi
@InlineMe(replacement = "Util.generateAudioSessionIdV21(context)", imports = [""androidx.media3.common.util.Util""])
generateAudioSessionIdV21(context: Context!)

This function is deprecated.

Use generateAudioSessionIdV21.

java-static Int
@UnstableApi
@InlineMe(replacement = "Util.getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode)", imports = [""androidx.media3.common.util.Util""])
@PlaybackException.ErrorCode
getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode: Int)

This function is deprecated.

Use getErrorCodeForMediaDrmErrorCode.

java-static String!
@UnstableApi
@InlineMe(replacement = "Util.getFormatSupportString(formatSupport)", imports = [""androidx.media3.common.util.Util""])
getFormatSupportString(@C.FormatSupport formatSupport: Int)

This function is deprecated.

Use getFormatSupportString.

java-static Long
@UnstableApi
@InlineMe(replacement = "Util.msToUs(timeMs)", imports = [""androidx.media3.common.util.Util""])
msToUs(timeMs: Long)

This function is deprecated.

Use msToUs.

java-static Long
@UnstableApi
@InlineMe(replacement = "Util.usToMs(timeUs)", imports = [""androidx.media3.common.util.Util""])
usToMs(timeUs: Long)

This function is deprecated.

Use usToMs.

Constants

ALLOW_CAPTURE_BY_ALL

const val ALLOW_CAPTURE_BY_ALL = 1: Int

See ALLOW_CAPTURE_BY_ALL.

ALLOW_CAPTURE_BY_NONE

const val ALLOW_CAPTURE_BY_NONE = 3: Int

See ALLOW_CAPTURE_BY_NONE.

ALLOW_CAPTURE_BY_SYSTEM

const val ALLOW_CAPTURE_BY_SYSTEM = 2: Int

See ALLOW_CAPTURE_BY_SYSTEM.

AUDIO_CONTENT_TYPE_MOVIE

const val AUDIO_CONTENT_TYPE_MOVIE = 3: Int

See CONTENT_TYPE_MOVIE.

AUDIO_CONTENT_TYPE_MUSIC

const val AUDIO_CONTENT_TYPE_MUSIC = 2: Int

See CONTENT_TYPE_MUSIC.

AUDIO_CONTENT_TYPE_SONIFICATION

const val AUDIO_CONTENT_TYPE_SONIFICATION = 4: Int

See CONTENT_TYPE_SONIFICATION.

AUDIO_CONTENT_TYPE_SPEECH

const val AUDIO_CONTENT_TYPE_SPEECH = 1: Int

See CONTENT_TYPE_SPEECH.

AUDIO_CONTENT_TYPE_UNKNOWN

const val AUDIO_CONTENT_TYPE_UNKNOWN = 0: Int

See CONTENT_TYPE_UNKNOWN.

AUDIO_SESSION_ID_UNSET

@UnstableApi
const val AUDIO_SESSION_ID_UNSET = 0: Int

Represents an unset android.media.AudioTrack session identifier. Equal to AUDIO_SESSION_ID_GENERATE.

AUXILIARY_TRACK_TYPE_DEPTH_INVERSE

@UnstableApi
const val AUXILIARY_TRACK_TYPE_DEPTH_INVERSE = 3: Int

An inverse encoded depth video track.

See https://developer.android.com/static/media/camera/camera2/Dynamic-depth-v1.0.pdf for inverse depth encoding.

AUXILIARY_TRACK_TYPE_DEPTH_LINEAR

@UnstableApi
const val AUXILIARY_TRACK_TYPE_DEPTH_LINEAR = 2: Int

A linear encoded depth video track.

See https://developer.android.com/static/media/camera/camera2/Dynamic-depth-v1.0.pdf for linear depth encoding.

AUXILIARY_TRACK_TYPE_DEPTH_METADATA

@UnstableApi
const val AUXILIARY_TRACK_TYPE_DEPTH_METADATA = 4: Int

A timed metadata of depth video track.

AUXILIARY_TRACK_TYPE_ORIGINAL

@UnstableApi
const val AUXILIARY_TRACK_TYPE_ORIGINAL = 1: Int

The original video track without any depth based effects applied.

AUXILIARY_TRACK_TYPE_UNDEFINED

@UnstableApi
const val AUXILIARY_TRACK_TYPE_UNDEFINED = 0: Int

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

BITS_PER_BYTE

@UnstableApi
const val BITS_PER_BYTE = 8: Int

The number of bits per byte.

BUFFER_FLAG_ENCRYPTED

@UnstableApi
const val BUFFER_FLAG_ENCRYPTED = 1073741824: Int

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

BUFFER_FLAG_END_OF_STREAM

@UnstableApi
const val BUFFER_FLAG_END_OF_STREAM = 4: Int

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

BUFFER_FLAG_FIRST_SAMPLE

@UnstableApi
const val BUFFER_FLAG_FIRST_SAMPLE = 134217728: Int

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

BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA

@UnstableApi
const val BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA = 268435456: Int

Indicates that a buffer has supplemental data.

BUFFER_FLAG_KEY_FRAME

@UnstableApi
const val BUFFER_FLAG_KEY_FRAME = 1: Int

Indicates that a buffer holds a synchronization sample.

BUFFER_FLAG_LAST_SAMPLE

@UnstableApi
const val BUFFER_FLAG_LAST_SAMPLE = 536870912: Int

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

BUFFER_FLAG_NOT_DEPENDED_ON

@UnstableApi
const val BUFFER_FLAG_NOT_DEPENDED_ON = 67108864: Int

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

BYTES_PER_FLOAT

@UnstableApi
const val BYTES_PER_FLOAT = 4: Int

The number of bytes per float.

CENC_TYPE_cbc1

@UnstableApi
const val CENC_TYPE_cbc1 = "cbc1": String!

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

CENC_TYPE_cbcs

@UnstableApi
const val CENC_TYPE_cbcs = "cbcs": String!

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

CENC_TYPE_cenc

@UnstableApi
const val CENC_TYPE_cenc = "cenc": String!

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

CENC_TYPE_cens

@UnstableApi
const val CENC_TYPE_cens = "cens": String!

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

CLEARKEY_UUID

const val CLEARKEY_UUIDUUID!

UUID for the ClearKey DRM scheme.

ClearKey is supported on Android devices running Android 5.0 (API Level 21) and up.

COLOR_RANGE_FULL

@UnstableApi
const val COLOR_RANGE_FULL = 1: Int

See COLOR_RANGE_FULL.

COLOR_RANGE_LIMITED

@UnstableApi
const val COLOR_RANGE_LIMITED = 2: Int

See COLOR_RANGE_LIMITED.

COLOR_SPACE_BT2020

@UnstableApi
const val COLOR_SPACE_BT2020 = 6: Int

See COLOR_STANDARD_BT2020.

COLOR_SPACE_BT601

@UnstableApi
const val COLOR_SPACE_BT601 = 2: Int

See COLOR_STANDARD_BT601_PAL.

COLOR_SPACE_BT709

@UnstableApi
const val COLOR_SPACE_BT709 = 1: Int

See COLOR_STANDARD_BT709.

COLOR_TRANSFER_GAMMA_2_2

@UnstableApi
const val COLOR_TRANSFER_GAMMA_2_2 = 10: Int

See TRANSFER_GAMMA2_2. The Gamma 2.2 transfer function, used for some SDR use-cases like tone-mapping.

COLOR_TRANSFER_HLG

@UnstableApi
const val COLOR_TRANSFER_HLG = 7: Int

See COLOR_TRANSFER_HLG.

COLOR_TRANSFER_LINEAR

@UnstableApi
const val COLOR_TRANSFER_LINEAR = 1: Int

See COLOR_TRANSFER_LINEAR.

COLOR_TRANSFER_SDR

@UnstableApi
const val COLOR_TRANSFER_SDR = 3: Int

See COLOR_TRANSFER_SDR_VIDEO. The SMPTE 170M transfer function.

COLOR_TRANSFER_SRGB

@UnstableApi
const val COLOR_TRANSFER_SRGB = 2: Int

See TRANSFER_SRGB. The standard RGB transfer function, used for some SDR use-cases like image input.

COLOR_TRANSFER_ST2084

@UnstableApi
const val COLOR_TRANSFER_ST2084 = 6: Int

See COLOR_TRANSFER_ST2084.

COMMON_PSSH_UUID

const val COMMON_PSSH_UUIDUUID!

UUID for the W3C Common PSSH box.

CONTENT_TYPE_DASH

const val CONTENT_TYPE_DASH = 0: Int

Value representing a DASH manifest.

CONTENT_TYPE_HLS

const val CONTENT_TYPE_HLS = 2: Int

Value representing an HLS manifest.

CONTENT_TYPE_MOVIE

@UnstableApi
const val CONTENT_TYPE_MOVIE = 3: Int

CONTENT_TYPE_MUSIC

@UnstableApi
const val CONTENT_TYPE_MUSIC = 2: Int

CONTENT_TYPE_OTHER

const val CONTENT_TYPE_OTHER = 4: Int

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

CONTENT_TYPE_RTSP

const val CONTENT_TYPE_RTSP = 3: Int

Value representing an RTSP stream.

CONTENT_TYPE_SONIFICATION

@UnstableApi
const val CONTENT_TYPE_SONIFICATION = 4: Int

CONTENT_TYPE_SPEECH

@UnstableApi
const val CONTENT_TYPE_SPEECH = 1: Int

CONTENT_TYPE_SS

const val CONTENT_TYPE_SS = 1: Int

Value representing a Smooth Streaming manifest.

CONTENT_TYPE_UNKNOWN

@UnstableApi
const val CONTENT_TYPE_UNKNOWN = 0: Int

CRYPTO_MODE_AES_CBC

@UnstableApi
const val CRYPTO_MODE_AES_CBC = 2: Int

See CRYPTO_MODE_AES_CBC.

CRYPTO_MODE_AES_CTR

@UnstableApi
const val CRYPTO_MODE_AES_CTR = 1: Int

See CRYPTO_MODE_AES_CTR.

CRYPTO_MODE_UNENCRYPTED

@UnstableApi
const val CRYPTO_MODE_UNENCRYPTED = 0: Int

See CRYPTO_MODE_UNENCRYPTED.

CRYPTO_TYPE_CUSTOM_BASE

const val CRYPTO_TYPE_CUSTOM_BASE = 10000: Int

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

CRYPTO_TYPE_FRAMEWORK

const val CRYPTO_TYPE_FRAMEWORK = 2: Int

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

CRYPTO_TYPE_NONE

const val CRYPTO_TYPE_NONE = 0: Int

No crypto.

CRYPTO_TYPE_UNSUPPORTED

const val CRYPTO_TYPE_UNSUPPORTED = 1: Int

An unsupported crypto type.

DATA_TYPE_AD

@UnstableApi
const val DATA_TYPE_AD = 6: Int

A data type constant for ads loader data.

DATA_TYPE_CUSTOM_BASE

@UnstableApi
const val DATA_TYPE_CUSTOM_BASE = 10000: Int

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

DATA_TYPE_DRM

@UnstableApi
const val DATA_TYPE_DRM = 3: Int

A data type constant for drm or encryption data.

DATA_TYPE_MANIFEST

@UnstableApi
const val DATA_TYPE_MANIFEST = 4: Int

A data type constant for a manifest file.

DATA_TYPE_MEDIA

@UnstableApi
const val DATA_TYPE_MEDIA = 1: Int

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

DATA_TYPE_MEDIA_INITIALIZATION

@UnstableApi
const val DATA_TYPE_MEDIA_INITIALIZATION = 2: Int

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

DATA_TYPE_MEDIA_PROGRESSIVE_LIVE

@UnstableApi
const val DATA_TYPE_MEDIA_PROGRESSIVE_LIVE = 7: Int

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

DATA_TYPE_TIME_SYNCHRONIZATION

@UnstableApi
const val DATA_TYPE_TIME_SYNCHRONIZATION = 5: Int

A data type constant for time synchronization data.

DATA_TYPE_UNKNOWN

@UnstableApi
const val DATA_TYPE_UNKNOWN = 0: Int

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

DEFAULT_BUFFER_SEGMENT_SIZE

@UnstableApi
const val DEFAULT_BUFFER_SEGMENT_SIZE = 65536: Int

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

DEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MS

const val DEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MS = 3000: Long

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

DEFAULT_SEEK_BACK_INCREMENT_MS

const val DEFAULT_SEEK_BACK_INCREMENT_MS = 5000: Long

A default seek back increment, in milliseconds.

DEFAULT_SEEK_FORWARD_INCREMENT_MS

const val DEFAULT_SEEK_FORWARD_INCREMENT_MS = 15000: Long

A default seek forward increment, in milliseconds.

ENCODING_AAC_ELD

@UnstableApi
const val ENCODING_AAC_ELD = 15: Int

See ENCODING_AAC_ELD.

ENCODING_AAC_ER_BSAC

@UnstableApi
const val ENCODING_AAC_ER_BSAC = 1073741824: Int

AAC Error Resilient Bit-Sliced Arithmetic Coding.

ENCODING_AAC_HE_V1

@UnstableApi
const val ENCODING_AAC_HE_V1 = 11: Int

See ENCODING_AAC_HE_V1.

ENCODING_AAC_HE_V2

@UnstableApi
const val ENCODING_AAC_HE_V2 = 12: Int

See ENCODING_AAC_HE_V2.

ENCODING_AAC_LC

@UnstableApi
const val ENCODING_AAC_LC = 10: Int

See ENCODING_AAC_LC.

ENCODING_AAC_XHE

@UnstableApi
const val ENCODING_AAC_XHE = 16: Int

See ENCODING_AAC_XHE.

ENCODING_AC3

@UnstableApi
const val ENCODING_AC3 = 5: Int

See ENCODING_AC3.

ENCODING_AC4

@UnstableApi
const val ENCODING_AC4 = 17: Int

See ENCODING_AC4.

ENCODING_DOLBY_TRUEHD

@UnstableApi
const val ENCODING_DOLBY_TRUEHD = 14: Int

See ENCODING_DOLBY_TRUEHD.

ENCODING_DTS

@UnstableApi
const val ENCODING_DTS = 7: Int

See ENCODING_DTS.

ENCODING_DTS_HD

@UnstableApi
const val ENCODING_DTS_HD = 8: Int

See ENCODING_DTS_HD.

ENCODING_DTS_UHD_P2

@UnstableApi
const val ENCODING_DTS_UHD_P2 = 30: Int

See ENCODING_DTS_UHD_P2.

ENCODING_E_AC3

@UnstableApi
const val ENCODING_E_AC3 = 6: Int

See ENCODING_E_AC3.

ENCODING_E_AC3_JOC

@UnstableApi
const val ENCODING_E_AC3_JOC = 18: Int

See ENCODING_E_AC3_JOC.

ENCODING_INVALID

@UnstableApi
const val ENCODING_INVALID = 0: Int

See ENCODING_INVALID.

ENCODING_MP3

@UnstableApi
const val ENCODING_MP3 = 9: Int

See ENCODING_MP3.

ENCODING_OPUS

@UnstableApi
const val ENCODING_OPUS = 20: Int

See ENCODING_OPUS.

ENCODING_PCM_16BIT

@UnstableApi
const val ENCODING_PCM_16BIT = 2: Int

See ENCODING_PCM_16BIT.

ENCODING_PCM_16BIT_BIG_ENDIAN

@UnstableApi
const val ENCODING_PCM_16BIT_BIG_ENDIAN = 268435456: Int

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

ENCODING_PCM_24BIT

@UnstableApi
const val ENCODING_PCM_24BIT = 21: Int

PCM encoding with 24 bits per sample.

ENCODING_PCM_24BIT_BIG_ENDIAN

@UnstableApi
const val ENCODING_PCM_24BIT_BIG_ENDIAN = 1342177280: Int

Like ENCODING_PCM_24BIT but with the bytes in big endian order.

ENCODING_PCM_32BIT

@UnstableApi
const val ENCODING_PCM_32BIT = 22: Int

PCM encoding with 32 bits per sample.

ENCODING_PCM_32BIT_BIG_ENDIAN

@UnstableApi
const val ENCODING_PCM_32BIT_BIG_ENDIAN = 1610612736: Int

Like ENCODING_PCM_32BIT but with the bytes in big endian order.

ENCODING_PCM_8BIT

@UnstableApi
const val ENCODING_PCM_8BIT = 3: Int

See ENCODING_PCM_8BIT.

ENCODING_PCM_FLOAT

@UnstableApi
const val ENCODING_PCM_FLOAT = 4: Int

See ENCODING_PCM_FLOAT.

FIRST_FRAME_NOT_RENDERED

@UnstableApi
const val FIRST_FRAME_NOT_RENDERED = 1: Int

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

FIRST_FRAME_NOT_RENDERED_AFTER_STREAM_CHANGE

@UnstableApi
const val FIRST_FRAME_NOT_RENDERED_AFTER_STREAM_CHANGE = 2: Int

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

FIRST_FRAME_NOT_RENDERED_ONLY_ALLOWED_IF_STARTED

@UnstableApi
const val FIRST_FRAME_NOT_RENDERED_ONLY_ALLOWED_IF_STARTED = 0: Int

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

FIRST_FRAME_RENDERED

@UnstableApi
const val FIRST_FRAME_RENDERED = 3: Int

The first frame was rendered.

FLAG_AUDIBILITY_ENFORCED

const val FLAG_AUDIBILITY_ENFORCED = 1: Int

See FLAG_AUDIBILITY_ENFORCED.

FORMAT_EXCEEDS_CAPABILITIES

@UnstableApi
const val FORMAT_EXCEEDS_CAPABILITIES = 3: Int

Formats with the same MIME type are supported, but the properties of this format exceed the declared capabilities. There is a chance playback with this format is still possible in practice because some components report their capabilities conservatively, but the expected outcome is that playback will fail.

Example: A player is capable of rendering H264 and the format's MIME type is MimeTypes#VIDEO_H264, but the format's resolution exceeds the maximum limit supported by the underlying H264 decoder.

FORMAT_HANDLED

@UnstableApi
const val FORMAT_HANDLED = 4: Int

The format is supported.

FORMAT_UNSUPPORTED_DRM

@UnstableApi
const val FORMAT_UNSUPPORTED_DRM = 2: Int

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

Example: The player is capable of rendering H264 and the format's MIME type is VIDEO_H264, but the format indicates PlayReady DRM protection whereas the renderer only supports Widevine.

FORMAT_UNSUPPORTED_SUBTYPE

@UnstableApi
const val FORMAT_UNSUPPORTED_SUBTYPE = 1: 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.

Example: The player supports audio and the format's MIME type matches audio/[subtype], but there does not exist a suitable decoder for [subtype].

FORMAT_UNSUPPORTED_TYPE

@UnstableApi
const val FORMAT_UNSUPPORTED_TYPE = 0: 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.

Example 1: The player is a general purpose audio player, but the format has a video MIME type.

Example 2: The player only has specialized support for AV1 and no general purpose video support, but the format's MIME type is VIDEO_H264.

INDEX_UNSET

const val INDEX_UNSET = -1: Int

Represents an unset or unknown index or byte position.

LANGUAGE_UNDETERMINED

const val LANGUAGE_UNDETERMINED = "und": String!

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

LENGTH_UNSET

const val LENGTH_UNSET = -1: Int

Represents an unset or unknown length.

MEDIA_CODEC_PRIORITY_NON_REALTIME

@UnstableApi
const val MEDIA_CODEC_PRIORITY_NON_REALTIME = 1: Int

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

MEDIA_CODEC_PRIORITY_REALTIME

@UnstableApi
const val MEDIA_CODEC_PRIORITY_REALTIME = 0: Int

A realtime codec priority.

MICROS_PER_SECOND

@UnstableApi
const val MICROS_PER_SECOND = 1000000: Long

The number of microseconds in one second.

MILLIS_PER_SECOND

@UnstableApi
const val MILLIS_PER_SECOND = 1000: Long

The number of milliseconds in one second.

NANOS_PER_SECOND

@UnstableApi
const val NANOS_PER_SECOND = 1000000000: Long

The number of nanoseconds in one second.

NETWORK_TYPE_2G

@UnstableApi
const val NETWORK_TYPE_2G = 3: Int

Network type for a 2G cellular connection.

NETWORK_TYPE_3G

@UnstableApi
const val NETWORK_TYPE_3G = 4: Int

Network type for a 3G cellular connection.

NETWORK_TYPE_4G

@UnstableApi
const val NETWORK_TYPE_4G = 5: Int

Network type for a 4G cellular connection.

NETWORK_TYPE_5G_NSA

@UnstableApi
const val NETWORK_TYPE_5G_NSA = 10: Int

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

NETWORK_TYPE_5G_SA

@UnstableApi
const val NETWORK_TYPE_5G_SA = 9: Int

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

NETWORK_TYPE_CELLULAR_UNKNOWN

@UnstableApi
const val NETWORK_TYPE_CELLULAR_UNKNOWN = 6: Int

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

NETWORK_TYPE_ETHERNET

@UnstableApi
const val NETWORK_TYPE_ETHERNET = 7: Int

Network type for an Ethernet connection.

NETWORK_TYPE_OFFLINE

@UnstableApi
const val NETWORK_TYPE_OFFLINE = 1: Int

No network connection.

NETWORK_TYPE_OTHER

@UnstableApi
const val NETWORK_TYPE_OTHER = 8: Int

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

NETWORK_TYPE_UNKNOWN

@UnstableApi
const val NETWORK_TYPE_UNKNOWN = 0: Int

Unknown network type.

NETWORK_TYPE_WIFI

@UnstableApi
const val NETWORK_TYPE_WIFI = 2: Int

Network type for a Wifi connection.

PERCENTAGE_UNSET

@UnstableApi
const val PERCENTAGE_UNSET = -1: Int

Represents an unset or unknown percentage.

PLAYREADY_UUID

const val PLAYREADY_UUIDUUID!

UUID for the PlayReady DRM scheme.

PlayReady is supported on all AndroidTV devices. Note that most other Android devices do not provide PlayReady support.

POSITION_UNSET

@UnstableApi
const val POSITION_UNSET = -1: Int

PRIORITY_DOWNLOAD

@UnstableApi
const val PRIORITY_DOWNLOAD = -4000: Int

Priority for media downloading unrelated to active playback.

PRIORITY_MAX

@UnstableApi
const val PRIORITY_MAX = 0: Int

The maximum supported Priority.

PRIORITY_PLAYBACK

@UnstableApi
const val PRIORITY_PLAYBACK = -1000: Int

Priority for active media playback.

PRIORITY_PLAYBACK_PRELOAD

@UnstableApi
const val PRIORITY_PLAYBACK_PRELOAD = -3000: Int

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

PRIORITY_PROCESSING_BACKGROUND

@UnstableApi
const val PRIORITY_PROCESSING_BACKGROUND = -4000: Int

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

PRIORITY_PROCESSING_FOREGROUND

@UnstableApi
const val PRIORITY_PROCESSING_FOREGROUND = -2000: Int

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

PROJECTION_CUBEMAP

@UnstableApi
const val PROJECTION_CUBEMAP = 2: Int

Cube map projection.

PROJECTION_EQUIRECTANGULAR

@UnstableApi
const val PROJECTION_EQUIRECTANGULAR = 1: Int

Equirectangular spherical projection.

PROJECTION_MESH

@UnstableApi
const val PROJECTION_MESH = 3: Int

3-D mesh projection.

PROJECTION_RECTANGULAR

@UnstableApi
const val PROJECTION_RECTANGULAR = 0: Int

Conventional rectangular projection.

RATE_UNSET

const val RATE_UNSET = -3.4028235E38f: Float

Represents an unset or unknown rate.

RATE_UNSET_INT

@UnstableApi
const val RATE_UNSET_INT = -2147483647: Int

Represents an unset or unknown integer rate.

RESULT_BUFFER_READ

@UnstableApi
const val RESULT_BUFFER_READ = -4: Int

A return value for methods where a buffer was read.

RESULT_END_OF_INPUT

@UnstableApi
const val RESULT_END_OF_INPUT = -1: Int

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

RESULT_FORMAT_READ

@UnstableApi
const val RESULT_FORMAT_READ = -5: Int

A return value for methods where a format was read.

RESULT_MAX_LENGTH_EXCEEDED

@UnstableApi
const val RESULT_MAX_LENGTH_EXCEEDED = -2: Int

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

RESULT_NOTHING_READ

@UnstableApi
const val RESULT_NOTHING_READ = -3: Int

A return value for methods where nothing was read.

ROLE_FLAG_ALTERNATE

const val ROLE_FLAG_ALTERNATE = 2: Int

Indicates an alternate track. For example a video track recorded from an different view point than the main track(s).

ROLE_FLAG_AUXILIARY

const val ROLE_FLAG_AUXILIARY = 32768: Int

Indicates an auxiliary track. An auxiliary track provides additional information about other tracks and is generally not meant for stand-alone playback, but rather for further processing in conjunction with other tracks (for example, a track with depth information).

ROLE_FLAG_CAPTION

const val ROLE_FLAG_CAPTION = 64: Int

Indicates the track contains captions. This flag may be set on video tracks to indicate the presence of burned in captions.

ROLE_FLAG_COMMENTARY

const val ROLE_FLAG_COMMENTARY = 8: Int

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

ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND

const val ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND = 1024: Int

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

ROLE_FLAG_DESCRIBES_VIDEO

const val ROLE_FLAG_DESCRIBES_VIDEO = 512: Int

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

ROLE_FLAG_DUB

const val ROLE_FLAG_DUB = 16: Int

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

ROLE_FLAG_EASY_TO_READ

const val ROLE_FLAG_EASY_TO_READ = 8192: Int

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

ROLE_FLAG_EMERGENCY

const val ROLE_FLAG_EMERGENCY = 32: Int

Indicates the track contains information about a current emergency.

ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY

const val ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY = 2048: Int

Indicates the track is designed for improved intelligibility of dialogue.

ROLE_FLAG_MAIN

const val ROLE_FLAG_MAIN = 1: Int

Indicates a main track.

ROLE_FLAG_SIGN

const val ROLE_FLAG_SIGN = 256: Int

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

ROLE_FLAG_SUBTITLE

const val ROLE_FLAG_SUBTITLE = 128: Int

Indicates the track contains subtitles. This flag may be set on video tracks to indicate the presence of burned in subtitles.

ROLE_FLAG_SUPPLEMENTARY

const val ROLE_FLAG_SUPPLEMENTARY = 4: Int

Indicates a supplementary track, meaning the track has lower importance than the main track(s). For example a video track that provides a visual accompaniment to a main audio track.

ROLE_FLAG_TRANSCRIBES_DIALOG

const val ROLE_FLAG_TRANSCRIBES_DIALOG = 4096: Int

Indicates the track contains a transcription of spoken dialog.

ROLE_FLAG_TRICK_PLAY

const val ROLE_FLAG_TRICK_PLAY = 16384: Int

Indicates the track is intended for trick play.

SANS_SERIF_NAME

@UnstableApi
const val SANS_SERIF_NAME = "sans-serif": String!

The name of the sans-serif font family.

SELECTION_FLAG_AUTOSELECT

const val SELECTION_FLAG_AUTOSELECT = 4: Int

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

SELECTION_FLAG_DEFAULT

const val SELECTION_FLAG_DEFAULT = 1: Int

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

SELECTION_FLAG_FORCED

const val SELECTION_FLAG_FORCED = 2: 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. Only applies to text tracks.

Tracks with this flag generally provide translation for elements that don't match the declared language of the selected audio track (e.g. speech in an alien language). See Netflix's summary for more info.

SELECTION_REASON_ADAPTIVE

@UnstableApi
const val SELECTION_REASON_ADAPTIVE = 3: Int

A selection reason constant for an adaptive track selection.

SELECTION_REASON_CUSTOM_BASE

@UnstableApi
const val SELECTION_REASON_CUSTOM_BASE = 10000: Int

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

SELECTION_REASON_INITIAL

@UnstableApi
const val SELECTION_REASON_INITIAL = 1: Int

A selection reason constant for an initial track selection.

SELECTION_REASON_MANUAL

@UnstableApi
const val SELECTION_REASON_MANUAL = 2: Int

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

SELECTION_REASON_TRICK_PLAY

@UnstableApi
const val SELECTION_REASON_TRICK_PLAY = 4: Int

A selection reason constant for a trick play track selection.

SELECTION_REASON_UNKNOWN

@UnstableApi
const val SELECTION_REASON_UNKNOWN = 0: Int

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

SERIF_NAME

@UnstableApi
const val SERIF_NAME = "serif": String!

The name of the serif font family.

SPATIALIZATION_BEHAVIOR_AUTO

const val SPATIALIZATION_BEHAVIOR_AUTO = 0: Int

See SPATIALIZATION_BEHAVIOR_AUTO.

SPATIALIZATION_BEHAVIOR_NEVER

const val SPATIALIZATION_BEHAVIOR_NEVER = 1: Int

See SPATIALIZATION_BEHAVIOR_NEVER.

SSAI_SCHEME

@UnstableApi
const val SSAI_SCHEME = "ssai": String!

The URI scheme used for content with server side ad insertion.

STEREO_MODE_INTERLEAVED_LEFT_PRIMARY

@UnstableApi
const val STEREO_MODE_INTERLEAVED_LEFT_PRIMARY = 4: Int

Indicates interleaved stereo layout with the left view being the primary view, used with 360/3D/VR videos.

STEREO_MODE_INTERLEAVED_RIGHT_PRIMARY

@UnstableApi
const val STEREO_MODE_INTERLEAVED_RIGHT_PRIMARY = 5: Int

Indicates interleaved stereo layout with the right view being the primary view, used with 360/3D/VR videos.

STEREO_MODE_LEFT_RIGHT

@UnstableApi
const val STEREO_MODE_LEFT_RIGHT = 2: Int

Indicates Left-Right stereo layout, used with 360/3D/VR videos.

STEREO_MODE_MONO

@UnstableApi
const val STEREO_MODE_MONO = 0: Int

Indicates Monoscopic stereo layout, used with 360/3D/VR videos.

STEREO_MODE_STEREO_MESH

@UnstableApi
const val STEREO_MODE_STEREO_MESH = 3: Int

Indicates a stereo layout where the left and right eyes have separate meshes, used with 360/3D/VR videos.

STEREO_MODE_TOP_BOTTOM

@UnstableApi
const val STEREO_MODE_TOP_BOTTOM = 1: Int

Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.

STREAM_TYPE_ALARM

@UnstableApi
const val STREAM_TYPE_ALARM = 4: Int

See STREAM_ALARM.

STREAM_TYPE_DEFAULT

@UnstableApi
const val STREAM_TYPE_DEFAULT = 3: Int

The default stream type used by audio renderers. Equal to STREAM_TYPE_MUSIC.

STREAM_TYPE_DTMF

@UnstableApi
const val STREAM_TYPE_DTMF = 8: Int

See STREAM_DTMF.

STREAM_TYPE_MUSIC

@UnstableApi
const val STREAM_TYPE_MUSIC = 3: Int

See STREAM_MUSIC.

STREAM_TYPE_NOTIFICATION

@UnstableApi
const val STREAM_TYPE_NOTIFICATION = 5: Int

See STREAM_NOTIFICATION.

STREAM_TYPE_RING

@UnstableApi
const val STREAM_TYPE_RING = 2: Int

See STREAM_RING.

STREAM_TYPE_SYSTEM

@UnstableApi
const val STREAM_TYPE_SYSTEM = 1: Int

See STREAM_SYSTEM.

STREAM_TYPE_VOICE_CALL

@UnstableApi
const val STREAM_TYPE_VOICE_CALL = 0: Int

See STREAM_VOICE_CALL.

TIME_END_OF_SOURCE

const val TIME_END_OF_SOURCE = -9223372036854775808: Long

Special constant representing a time corresponding to the end of a source. Suitable for use in any time base.

TIME_UNSET

const val TIME_UNSET = -9223372036854775807: Long

Special constant representing an unset or unknown time or duration. Suitable for use in any time base.

TRACK_TYPE_AUDIO

const val TRACK_TYPE_AUDIO = 1: Int

A type constant for audio tracks.

TRACK_TYPE_CAMERA_MOTION

const val TRACK_TYPE_CAMERA_MOTION = 6: Int

A type constant for camera motion tracks.

TRACK_TYPE_CUSTOM_BASE

const val TRACK_TYPE_CUSTOM_BASE = 10000: Int

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

TRACK_TYPE_DEFAULT

const val TRACK_TYPE_DEFAULT = 0: Int

A type constant for tracks of some default type, where the type itself is unknown.

TRACK_TYPE_IMAGE

const val TRACK_TYPE_IMAGE = 4: Int

A type constant for image tracks.

TRACK_TYPE_METADATA

const val TRACK_TYPE_METADATA = 5: Int

A type constant for metadata tracks.

TRACK_TYPE_NONE

const val TRACK_TYPE_NONE = -2: Int

A type constant for a fake or empty track.

TRACK_TYPE_TEXT

const val TRACK_TYPE_TEXT = 3: Int

A type constant for text tracks.

TRACK_TYPE_UNKNOWN

const val TRACK_TYPE_UNKNOWN = -1: Int

A type constant for tracks of unknown type.

TRACK_TYPE_VIDEO

const val TRACK_TYPE_VIDEO = 2: Int

A type constant for video tracks.

TYPE_DASH

@UnstableApi
const val TYPE_DASH = 0: Int

TYPE_HLS

@UnstableApi
const val TYPE_HLS = 2: Int

TYPE_OTHER

@UnstableApi
const val TYPE_OTHER = 4: Int

TYPE_RTSP

@UnstableApi
const val TYPE_RTSP = 3: Int

TYPE_SS

@UnstableApi
const val TYPE_SS = 1: Int

USAGE_ALARM

const val USAGE_ALARM = 4: Int

See USAGE_ALARM.

USAGE_ASSISTANCE_ACCESSIBILITY

const val USAGE_ASSISTANCE_ACCESSIBILITY = 11: Int

See USAGE_ASSISTANCE_ACCESSIBILITY.

USAGE_ASSISTANCE_NAVIGATION_GUIDANCE

const val USAGE_ASSISTANCE_NAVIGATION_GUIDANCE = 12: Int

See USAGE_ASSISTANCE_NAVIGATION_GUIDANCE.

USAGE_ASSISTANCE_SONIFICATION

const val USAGE_ASSISTANCE_SONIFICATION = 13: Int

See USAGE_ASSISTANCE_SONIFICATION.

USAGE_ASSISTANT

const val USAGE_ASSISTANT = 16: Int

See USAGE_ASSISTANT.

USAGE_GAME

const val USAGE_GAME = 14: Int

See USAGE_GAME.

USAGE_MEDIA

const val USAGE_MEDIA = 1: Int

See USAGE_MEDIA.

USAGE_NOTIFICATION

const val USAGE_NOTIFICATION = 5: Int

See USAGE_NOTIFICATION.

USAGE_NOTIFICATION_COMMUNICATION_DELAYED

const val USAGE_NOTIFICATION_COMMUNICATION_DELAYED = 9: Int

See USAGE_NOTIFICATION_COMMUNICATION_DELAYED.

USAGE_NOTIFICATION_COMMUNICATION_INSTANT

const val USAGE_NOTIFICATION_COMMUNICATION_INSTANT = 8: Int

See USAGE_NOTIFICATION_COMMUNICATION_INSTANT.

USAGE_NOTIFICATION_COMMUNICATION_REQUEST

const val USAGE_NOTIFICATION_COMMUNICATION_REQUEST = 7: Int

See USAGE_NOTIFICATION_COMMUNICATION_REQUEST.

USAGE_NOTIFICATION_EVENT

const val USAGE_NOTIFICATION_EVENT = 10: Int

See USAGE_NOTIFICATION_EVENT.

USAGE_NOTIFICATION_RINGTONE

const val USAGE_NOTIFICATION_RINGTONE = 6: Int

See USAGE_NOTIFICATION_RINGTONE.

USAGE_UNKNOWN

const val USAGE_UNKNOWN = 0: Int

See USAGE_UNKNOWN.

USAGE_VOICE_COMMUNICATION

const val USAGE_VOICE_COMMUNICATION = 2: Int

See USAGE_VOICE_COMMUNICATION.

USAGE_VOICE_COMMUNICATION_SIGNALLING

const val USAGE_VOICE_COMMUNICATION_SIGNALLING = 3: Int

See USAGE_VOICE_COMMUNICATION_SIGNALLING.

UUID_NIL

const val UUID_NILUUID!

The Nil UUID as defined by RFC4122.

VIDEO_CHANGE_FRAME_RATE_STRATEGY_OFF

@UnstableApi
const val VIDEO_CHANGE_FRAME_RATE_STRATEGY_OFF = -2147483648: Int

Strategy to never call setFrameRate. Use this strategy if you prefer to call setFrameRate directly from application code.

VIDEO_CHANGE_FRAME_RATE_STRATEGY_ONLY_IF_SEAMLESS

@UnstableApi
const val VIDEO_CHANGE_FRAME_RATE_STRATEGY_ONLY_IF_SEAMLESS = 0: Int

Strategy to call setFrameRate with CHANGE_FRAME_RATE_ONLY_IF_SEAMLESS when the output frame rate is known.

VIDEO_OUTPUT_MODE_NONE

@UnstableApi
const val VIDEO_OUTPUT_MODE_NONE = -1: Int

Video decoder output mode is not set.

VIDEO_OUTPUT_MODE_SURFACE_YUV

@UnstableApi
const val VIDEO_OUTPUT_MODE_SURFACE_YUV = 1: Int

Video decoder output mode that renders 4:2:0 YUV planes directly to a surface.

VIDEO_OUTPUT_MODE_YUV

@UnstableApi
const val VIDEO_OUTPUT_MODE_YUV = 0: Int

Video decoder output mode that outputs raw 4:2:0 YUV planes.

VIDEO_SCALING_MODE_DEFAULT

@UnstableApi
const val VIDEO_SCALING_MODE_DEFAULT = 1: Int

A default video scaling mode for MediaCodec-based renderers.

VIDEO_SCALING_MODE_SCALE_TO_FIT

@UnstableApi
const val VIDEO_SCALING_MODE_SCALE_TO_FIT = 1: Int

See VIDEO_SCALING_MODE_SCALE_TO_FIT.

VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING

@UnstableApi
const val VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING = 2: Int

See VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING.

VOLUME_FLAG_ALLOW_RINGER_MODES

const val VOLUME_FLAG_ALLOW_RINGER_MODES = 2: Int

See FLAG_ALLOW_RINGER_MODES.

VOLUME_FLAG_PLAY_SOUND

const val VOLUME_FLAG_PLAY_SOUND = 4: Int

See FLAG_PLAY_SOUND.

VOLUME_FLAG_REMOVE_SOUND_AND_VIBRATE

const val VOLUME_FLAG_REMOVE_SOUND_AND_VIBRATE = 8: Int

See FLAG_REMOVE_SOUND_AND_VIBRATE.

VOLUME_FLAG_SHOW_UI

const val VOLUME_FLAG_SHOW_UI = 1: Int

See FLAG_SHOW_UI.

VOLUME_FLAG_VIBRATE

const val VOLUME_FLAG_VIBRATE = 16: Int

See FLAG_VIBRATE.

WAKE_MODE_LOCAL

const val WAKE_MODE_LOCAL = 1: Int

A wake mode that will cause the player to hold a android.os.PowerManager.WakeLock during playback.

This is suitable for applications that play media with the screen off and do not load media over wifi.

WAKE_MODE_NETWORK

const val WAKE_MODE_NETWORK = 2: Int

A wake mode that will cause the player to hold a android.os.PowerManager.WakeLock and a android.net.wifi.WifiManager.WifiLock during playback.

This is suitable for applications that play media with the screen off and may load media over wifi.

WAKE_MODE_NONE

const val WAKE_MODE_NONE = 0: Int

A wake mode that will not cause the player to hold any locks.

This is suitable for applications that do not play media with the screen off.

WIDEVINE_UUID

const val WIDEVINE_UUIDUUID!

UUID for the Widevine DRM scheme.

Widevine is supported on Android devices running Android 4.3 (API Level 18) and up.

Public functions

generateAudioSessionIdV21

@UnstableApi
@InlineMe(replacement = "Util.generateAudioSessionIdV21(context)", imports = [""androidx.media3.common.util.Util""])
java-static fun generateAudioSessionIdV21(context: Context!): Int

getErrorCodeForMediaDrmErrorCode

@UnstableApi
@InlineMe(replacement = "Util.getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode)", imports = [""androidx.media3.common.util.Util""])
@PlaybackException.ErrorCode
java-static fun getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode: Int): Int

getFormatSupportString

@UnstableApi
@InlineMe(replacement = "Util.getFormatSupportString(formatSupport)", imports = [""androidx.media3.common.util.Util""])
java-static fun getFormatSupportString(@C.FormatSupport formatSupport: Int): String!

msToUs

@UnstableApi
@InlineMe(replacement = "Util.msToUs(timeMs)", imports = [""androidx.media3.common.util.Util""])
java-static fun msToUs(timeMs: Long): Long

usToMs

@UnstableApi
@InlineMe(replacement = "Util.usToMs(timeUs)", imports = [""androidx.media3.common.util.Util""])
java-static fun usToMs(timeUs: Long): Long