Class C
- java.lang.Object
-
- com.google.android.exoplayer2.C
-
public final class C extends Object
Defines constants used by the library.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceC.AudioAllowedCapturePolicyCapture policies for audio attributes.static interfaceC.AudioContentTypeContent types for audio attributes.static interfaceC.AudioFlagsFlags for audio attributes.static interfaceC.AudioUsageUsage types for audio attributes.static interfaceC.BufferFlagsFlags which can apply to a buffer containing a media sample.static interfaceC.ColorRangeVideo color range.static interfaceC.ColorSpaceVideo colorspaces.static interfaceC.ColorTransferVideo color transfer characteristics.static interfaceC.ContentTypeRepresents a streaming or other media type.static interfaceC.CryptoModeCrypto modes for a codec.static interfaceC.CryptoTypeTypes of crypto implementation.static interfaceC.DataTypeRepresents a type of data.static interfaceC.EncodingRepresents an audio encoding, or an invalid or unset value.static interfaceC.FormatSupportLevel of renderer support for a format.static interfaceC.NetworkTypeNetwork connection type.static interfaceC.PcmEncodingRepresents a PCM audio encoding, or an invalid or unset value.static interfaceC.ProjectionVideo projection types.static interfaceC.RoleFlagsTrack role flags.static interfaceC.SelectionFlagsTrack selection flags.static interfaceC.SelectionReasonRepresents a reason for selection.static interfaceC.SpatializationBehaviorRepresents the behavior affecting whether spatialization will be used.static interfaceC.StereoModeThe stereo mode for 360/3D/VR videos.static interfaceC.StreamTypeStream types for anAudioTrack.static interfaceC.TrackTypeRepresents a type of media track.static interfaceC.VideoChangeFrameRateStrategyStrategies for callingSurface.setFrameRate(float, int, int).static interfaceC.VideoOutputModeVideo decoder output modes.static interfaceC.VideoScalingModeVideo scaling modes forMediaCodec-based renderers.static interfaceC.WakeModeMode specifying whether the player should hold a WakeLock and a WifiLock.
-
Field Summary
Fields Modifier and Type Field Description static intALLOW_CAPTURE_BY_ALLstatic intALLOW_CAPTURE_BY_NONEstatic intALLOW_CAPTURE_BY_SYSTEMstatic StringASCII_NAMEDeprecated.UseStandardCharsetsorCharsetsinstead.static intAUDIO_SESSION_ID_UNSETRepresents an unsetAudioTracksession identifier.static intBITS_PER_BYTEThe number of bits per byte.static intBUFFER_FLAG_DECODE_ONLYIndicates that a buffer should be decoded but not rendered.static intBUFFER_FLAG_ENCRYPTEDIndicates that a buffer is (at least partially) encrypted.static intBUFFER_FLAG_END_OF_STREAMFlag for empty buffers that signal that the end of the stream was reached.static intBUFFER_FLAG_HAS_SUPPLEMENTAL_DATAIndicates that a buffer has supplemental data.static intBUFFER_FLAG_KEY_FRAMEIndicates that a buffer holds a synchronization sample.static intBUFFER_FLAG_LAST_SAMPLEIndicates that a buffer is known to contain the last media sample of the stream.static intBYTES_PER_FLOATThe number of bytes per float.static StringCENC_TYPE_cbc1"cbc1" scheme type name as defined in ISO/IEC 23001-7:2016.static StringCENC_TYPE_cbcs"cbcs" scheme type name as defined in ISO/IEC 23001-7:2016.static StringCENC_TYPE_cenc"cenc" scheme type name as defined in ISO/IEC 23001-7:2016.static StringCENC_TYPE_cens"cens" scheme type name as defined in ISO/IEC 23001-7:2016.static UUIDCLEARKEY_UUIDUUID for the ClearKey DRM scheme.static intCOLOR_RANGE_FULLstatic intCOLOR_RANGE_LIMITEDstatic intCOLOR_SPACE_BT2020static intCOLOR_SPACE_BT601static intCOLOR_SPACE_BT709static intCOLOR_TRANSFER_HLGstatic intCOLOR_TRANSFER_SDRstatic intCOLOR_TRANSFER_ST2084static UUIDCOMMON_PSSH_UUIDUUID for the W3C Common PSSH box.static intCONTENT_TYPE_MOVIEstatic intCONTENT_TYPE_MUSICstatic intCONTENT_TYPE_SONIFICATIONstatic intCONTENT_TYPE_SPEECHstatic intCONTENT_TYPE_UNKNOWNstatic intCRYPTO_MODE_AES_CBCstatic intCRYPTO_MODE_AES_CTRstatic intCRYPTO_MODE_UNENCRYPTEDstatic intCRYPTO_TYPE_CUSTOM_BASEApplications or extensions may define customCRYPTO_TYPE_*constants greater than or equal to this value.static intCRYPTO_TYPE_FRAMEWORKFramework crypto in which aMediaCodecis configured with aMediaCrypto.static intCRYPTO_TYPE_NONENo crypto.static intCRYPTO_TYPE_UNSUPPORTEDAn unsupported crypto type.static intDATA_TYPE_ADA data type constant for ads loader data.static intDATA_TYPE_CUSTOM_BASEApplications or extensions may define customDATA_TYPE_*constants greater than or equal to this value.static intDATA_TYPE_DRMA data type constant for drm or encryption data.static intDATA_TYPE_MANIFESTA data type constant for a manifest file.static intDATA_TYPE_MEDIAA data type constant for media, typically containing media samples.static intDATA_TYPE_MEDIA_INITIALIZATIONA data type constant for media, typically containing only initialization data.static intDATA_TYPE_MEDIA_PROGRESSIVE_LIVEA data type constant for live progressive media streams, typically containing media samples.static intDATA_TYPE_TIME_SYNCHRONIZATIONA data type constant for time synchronization data.static intDATA_TYPE_UNKNOWNA data type constant for data of unknown or unspecified type.static intDEFAULT_BUFFER_SEGMENT_SIZEA default size in bytes for an individual allocation that forms part of a larger buffer.static longDEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MSA default maximum position for which a seek to previous will seek to the previous window, in milliseconds.static longDEFAULT_SEEK_BACK_INCREMENT_MSA default seek back increment, in milliseconds.static longDEFAULT_SEEK_FORWARD_INCREMENT_MSA default seek forward increment, in milliseconds.static intENCODING_AAC_ELDstatic intENCODING_AAC_ER_BSACAAC Error Resilient Bit-Sliced Arithmetic Coding.static intENCODING_AAC_HE_V1static intENCODING_AAC_HE_V2static intENCODING_AAC_LCstatic intENCODING_AAC_XHEstatic intENCODING_AC3static intENCODING_AC4static intENCODING_DOLBY_TRUEHDstatic intENCODING_DTSstatic intENCODING_DTS_HDstatic intENCODING_E_AC3static intENCODING_E_AC3_JOCstatic intENCODING_INVALIDstatic intENCODING_MP3static intENCODING_PCM_16BITstatic intENCODING_PCM_16BIT_BIG_ENDIANLikeENCODING_PCM_16BIT, but with the bytes in big endian order.static intENCODING_PCM_24BITPCM encoding with 24 bits per sample.static intENCODING_PCM_32BITPCM encoding with 32 bits per sample.static intENCODING_PCM_8BITstatic intENCODING_PCM_FLOATstatic intFLAG_AUDIBILITY_ENFORCEDstatic intFORMAT_EXCEEDS_CAPABILITIESTheRendereris capable of rendering formats with the same MIME type, but the properties of the format exceed the renderer's capabilities.static intFORMAT_HANDLEDTheRendereris capable of rendering the format.static intFORMAT_UNSUPPORTED_DRMTheRendereris capable of rendering formats with the same MIME type, but is not capable of rendering the format because the format's drm protection is not supported.static intFORMAT_UNSUPPORTED_SUBTYPETheRendereris a general purpose renderer for formats of the same top-level type, but is not capable of rendering the format or any other format with the same MIME type because the sub-type is not supported.static intFORMAT_UNSUPPORTED_TYPETheRendereris not capable of rendering the format, either because it does not support the format's top-level type, or because it's a specialized renderer for a different MIME type.static intINDEX_UNSETRepresents an unset or unknown index.static StringISO88591_NAMEDeprecated.UseStandardCharsetsorCharsetsinstead.static StringLANGUAGE_UNDETERMINEDRepresents an undetermined language as an ISO 639-2 language code.static intLENGTH_UNSETRepresents an unset or unknown length.static longMICROS_PER_SECONDThe number of microseconds in one second.static longMILLIS_PER_SECONDThe number of milliseconds in one second.static longNANOS_PER_SECONDThe number of nanoseconds in one second.static intNETWORK_TYPE_2GNetwork type for a 2G cellular connection.static intNETWORK_TYPE_3GNetwork type for a 3G cellular connection.static intNETWORK_TYPE_4GNetwork type for a 4G cellular connection.static intNETWORK_TYPE_5G_NSANetwork type for a 5G non-stand-alone (NSA) cellular connection.static intNETWORK_TYPE_5G_SANetwork type for a 5G stand-alone (SA) cellular connection.static intNETWORK_TYPE_CELLULAR_UNKNOWNNetwork type for cellular connections which cannot be mapped to one ofNETWORK_TYPE_2G,NETWORK_TYPE_3G, orNETWORK_TYPE_4G.static intNETWORK_TYPE_ETHERNETNetwork type for an Ethernet connection.static intNETWORK_TYPE_OFFLINENo network connection.static intNETWORK_TYPE_OTHERNetwork type for other connections which are not Wifi or cellular (e.g.static intNETWORK_TYPE_UNKNOWNUnknown network type.static intNETWORK_TYPE_WIFINetwork type for a Wifi connection.static intPERCENTAGE_UNSETRepresents an unset or unknown percentage.static UUIDPLAYREADY_UUIDUUID for the PlayReady DRM scheme.static intPOSITION_UNSETRepresents an unset or unknown position.static intPRIORITY_DOWNLOADPriority for media downloading.static intPRIORITY_PLAYBACKPriority for media playback.static intPROJECTION_CUBEMAPCube map projection.static intPROJECTION_EQUIRECTANGULAREquirectangular spherical projection.static intPROJECTION_MESH3-D mesh projection.static intPROJECTION_RECTANGULARConventional rectangular projection.static floatRATE_UNSETRepresents an unset or unknown rate.static intRESULT_BUFFER_READA return value for methods where a buffer was read.static intRESULT_END_OF_INPUTA return value for methods where the end of an input was encountered.static intRESULT_FORMAT_READA return value for methods where a format was read.static intRESULT_MAX_LENGTH_EXCEEDEDA return value for methods where the length of parsed data exceeds the maximum length allowed.static intRESULT_NOTHING_READA return value for methods where nothing was read.static intROLE_FLAG_ALTERNATEIndicates an alternate track.static intROLE_FLAG_CAPTIONIndicates the track contains captions.static intROLE_FLAG_COMMENTARYIndicates the track contains commentary, for example from the director.static intROLE_FLAG_DESCRIBES_MUSIC_AND_SOUNDIndicates the track contains a textual description of music and sound.static intROLE_FLAG_DESCRIBES_VIDEOIndicates the track contains an audio or textual description of a video track.static intROLE_FLAG_DUBIndicates the track is in a different language from the original, for example dubbed audio or translated captions.static intROLE_FLAG_EASY_TO_READIndicates the track contains a text that has been edited for ease of reading.static intROLE_FLAG_EMERGENCYIndicates the track contains information about a current emergency.static intROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITYIndicates the track is designed for improved intelligibility of dialogue.static intROLE_FLAG_MAINIndicates a main track.static intROLE_FLAG_SIGNIndicates the track contains a visual sign-language interpretation of an audio track.static intROLE_FLAG_SUBTITLEIndicates the track contains subtitles.static intROLE_FLAG_SUPPLEMENTARYIndicates a supplementary track, meaning the track has lower importance than the main track(s).static intROLE_FLAG_TRANSCRIBES_DIALOGIndicates the track contains a transcription of spoken dialog.static intROLE_FLAG_TRICK_PLAYIndicates the track is intended for trick play.static StringSANS_SERIF_NAMEThe name of the sans-serif font family.static intSELECTION_FLAG_AUTOSELECTIndicates that the player may choose to play the track in absence of an explicit user preference.static intSELECTION_FLAG_DEFAULTIndicates that the track should be selected if user preferences do not state otherwise.static intSELECTION_FLAG_FORCEDIndicates 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 intSELECTION_REASON_ADAPTIVEA selection reason constant for an adaptive track selection.static intSELECTION_REASON_CUSTOM_BASEApplications or extensions may define customSELECTION_REASON_*constants greater than or equal to this value.static intSELECTION_REASON_INITIALA selection reason constant for an initial track selection.static intSELECTION_REASON_MANUALA selection reason constant for an manual (i.e.static intSELECTION_REASON_TRICK_PLAYA selection reason constant for a trick play track selection.static intSELECTION_REASON_UNKNOWNA selection reason constant for selections whose reasons are unknown or unspecified.static StringSERIF_NAMEThe name of the serif font family.static intSPATIALIZATION_BEHAVIOR_AUTOSee AudioAttributes#SPATIALIZATION_BEHAVIOR_AUTOstatic intSPATIALIZATION_BEHAVIOR_NEVERSee AudioAttributes#SPATIALIZATION_BEHAVIOR_NEVERstatic StringSSAI_SCHEMETheURI schemeused for content with server side ad insertion.static intSTEREO_MODE_LEFT_RIGHTIndicates Left-Right stereo layout, used with 360/3D/VR videos.static intSTEREO_MODE_MONOIndicates Monoscopic stereo layout, used with 360/3D/VR videos.static intSTEREO_MODE_STEREO_MESHIndicates a stereo layout where the left and right eyes have separate meshes, used with 360/3D/VR videos.static intSTEREO_MODE_TOP_BOTTOMIndicates Top-Bottom stereo layout, used with 360/3D/VR videos.static intSTREAM_TYPE_ALARMstatic intSTREAM_TYPE_DEFAULTThe default stream type used by audio renderers.static intSTREAM_TYPE_DTMFstatic intSTREAM_TYPE_MUSICstatic intSTREAM_TYPE_NOTIFICATIONstatic intSTREAM_TYPE_RINGstatic intSTREAM_TYPE_SYSTEMstatic intSTREAM_TYPE_VOICE_CALLstatic longTIME_END_OF_SOURCESpecial constant representing a time corresponding to the end of a source.static longTIME_UNSETSpecial constant representing an unset or unknown time or duration.static intTRACK_TYPE_AUDIOA type constant for audio tracks.static intTRACK_TYPE_CAMERA_MOTIONA type constant for camera motion tracks.static intTRACK_TYPE_CUSTOM_BASEApplications or extensions may define customTRACK_TYPE_*constants greater than or equal to this value.static intTRACK_TYPE_DEFAULTA type constant for tracks of some default type, where the type itself is unknown.static intTRACK_TYPE_IMAGEA type constant for image tracks.static intTRACK_TYPE_METADATAA type constant for metadata tracks.static intTRACK_TYPE_NONEA type constant for a fake or empty track.static intTRACK_TYPE_TEXTA type constant for text tracks.static intTRACK_TYPE_UNKNOWNA type constant for tracks of unknown type.static intTRACK_TYPE_VIDEOA type constant for video tracks.static intTYPE_DASHValue returned byUtil.inferContentType(String)for DASH manifests.static intTYPE_HLSValue returned byUtil.inferContentType(String)for HLS manifests.static intTYPE_OTHERValue returned byUtil.inferContentType(String)for files other than DASH, HLS or Smooth Streaming manifests, or RTSP URIs.static intTYPE_RTSPValue returned byUtil.inferContentType(String)for RTSP.static intTYPE_SSValue returned byUtil.inferContentType(String)for Smooth Streaming manifests.static intUSAGE_ALARMstatic intUSAGE_ASSISTANCE_ACCESSIBILITYstatic intUSAGE_ASSISTANCE_NAVIGATION_GUIDANCEstatic intUSAGE_ASSISTANCE_SONIFICATIONstatic intUSAGE_ASSISTANTstatic intUSAGE_GAMEstatic intUSAGE_MEDIAstatic intUSAGE_NOTIFICATIONstatic intUSAGE_NOTIFICATION_COMMUNICATION_DELAYEDstatic intUSAGE_NOTIFICATION_COMMUNICATION_INSTANTstatic intUSAGE_NOTIFICATION_COMMUNICATION_REQUESTstatic intUSAGE_NOTIFICATION_EVENTstatic intUSAGE_NOTIFICATION_RINGTONEstatic intUSAGE_UNKNOWNstatic intUSAGE_VOICE_COMMUNICATIONstatic intUSAGE_VOICE_COMMUNICATION_SIGNALLINGstatic StringUTF16_NAMEDeprecated.UseStandardCharsetsorCharsetsinstead.static StringUTF16LE_NAMEDeprecated.UseStandardCharsetsorCharsetsinstead.static StringUTF8_NAMEDeprecated.UseStandardCharsetsorCharsetsinstead.static UUIDUUID_NILThe Nil UUID as defined by RFC4122.static intVIDEO_CHANGE_FRAME_RATE_STRATEGY_OFFStrategy to never callSurface.setFrameRate(float, int, int).static intVIDEO_CHANGE_FRAME_RATE_STRATEGY_ONLY_IF_SEAMLESSStrategy to callSurface.setFrameRate(float, int, int)withSurface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESSwhen the output frame rate is known.static intVIDEO_OUTPUT_MODE_NONEVideo decoder output mode is not set.static intVIDEO_OUTPUT_MODE_SURFACE_YUVVideo decoder output mode that renders 4:2:0 YUV planes directly to a surface.static intVIDEO_OUTPUT_MODE_YUVVideo decoder output mode that outputs raw 4:2:0 YUV planes.static intVIDEO_SCALING_MODE_DEFAULTA default video scaling mode forMediaCodec-based renderers.static intVIDEO_SCALING_MODE_SCALE_TO_FITstatic intVIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPINGstatic intWAKE_MODE_LOCALA wake mode that will cause the player to hold aPowerManager.WakeLockduring playback.static intWAKE_MODE_NETWORKA wake mode that will cause the player to hold aPowerManager.WakeLockand aWifiManager.WifiLockduring playback.static intWAKE_MODE_NONEA wake mode that will not cause the player to hold any locks.static UUIDWIDEVINE_UUIDUUID for the Widevine DRM scheme.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static intgenerateAudioSessionIdV21(Context context)Deprecated.static @com.google.android.exoplayer2.PlaybackException.ErrorCode intgetErrorCodeForMediaDrmErrorCode(int mediaDrmErrorCode)Deprecated.static StringgetFormatSupportString(@com.google.android.exoplayer2.C.FormatSupport int formatSupport)Deprecated.static longmsToUs(long timeMs)Deprecated.UseUtil.msToUs(long).static longusToMs(long timeUs)Deprecated.UseUtil.usToMs(long).
-
-
-
Field Detail
-
TIME_END_OF_SOURCE
public static final long TIME_END_OF_SOURCE
Special constant representing a time corresponding to the end of a source. Suitable for use in any time base.- See Also:
- Constant Field Values
-
TIME_UNSET
public static final long TIME_UNSET
Special constant representing an unset or unknown time or duration. Suitable for use in any time base.- See Also:
- Constant Field Values
-
INDEX_UNSET
public static final int INDEX_UNSET
Represents an unset or unknown index.- See Also:
- Constant Field Values
-
POSITION_UNSET
public static final int POSITION_UNSET
Represents an unset or unknown position.- See Also:
- Constant Field Values
-
RATE_UNSET
public static final float RATE_UNSET
Represents an unset or unknown rate.- See Also:
- Constant Field Values
-
LENGTH_UNSET
public static final int LENGTH_UNSET
Represents an unset or unknown length.- See Also:
- Constant Field Values
-
PERCENTAGE_UNSET
public static final int PERCENTAGE_UNSET
Represents an unset or unknown percentage.- See Also:
- Constant Field Values
-
MILLIS_PER_SECOND
public static final long MILLIS_PER_SECOND
The number of milliseconds in one second.- See Also:
- Constant Field Values
-
MICROS_PER_SECOND
public static final long MICROS_PER_SECOND
The number of microseconds in one second.- See Also:
- Constant Field Values
-
NANOS_PER_SECOND
public static final long NANOS_PER_SECOND
The number of nanoseconds in one second.- See Also:
- Constant Field Values
-
BITS_PER_BYTE
public static final int BITS_PER_BYTE
The number of bits per byte.- See Also:
- Constant Field Values
-
BYTES_PER_FLOAT
public static final int BYTES_PER_FLOAT
The number of bytes per float.- See Also:
- Constant Field Values
-
ASCII_NAME
@Deprecated public static final String ASCII_NAME
Deprecated.UseStandardCharsetsorCharsetsinstead.- See Also:
- Constant Field Values
-
UTF8_NAME
@Deprecated public static final String UTF8_NAME
Deprecated.UseStandardCharsetsorCharsetsinstead.- See Also:
- Constant Field Values
-
ISO88591_NAME
@Deprecated public static final String ISO88591_NAME
Deprecated.UseStandardCharsetsorCharsetsinstead.- See Also:
- Constant Field Values
-
UTF16_NAME
@Deprecated public static final String UTF16_NAME
Deprecated.UseStandardCharsetsorCharsetsinstead.- See Also:
- Constant Field Values
-
UTF16LE_NAME
@Deprecated public static final String UTF16LE_NAME
Deprecated.UseStandardCharsetsorCharsetsinstead.- See Also:
- Constant Field Values
-
SERIF_NAME
public static final String SERIF_NAME
The name of the serif font family.- See Also:
- Constant Field Values
-
SANS_SERIF_NAME
public static final String SANS_SERIF_NAME
The name of the sans-serif font family.- See Also:
- Constant Field Values
-
SSAI_SCHEME
public static final String SSAI_SCHEME
TheURI schemeused for content with server side ad insertion.- See Also:
- Constant Field Values
-
CRYPTO_TYPE_NONE
public static final int CRYPTO_TYPE_NONE
No crypto.- See Also:
- Constant Field Values
-
CRYPTO_TYPE_UNSUPPORTED
public static final int CRYPTO_TYPE_UNSUPPORTED
An unsupported crypto type.- See Also:
- Constant Field Values
-
CRYPTO_TYPE_FRAMEWORK
public static final int CRYPTO_TYPE_FRAMEWORK
Framework crypto in which aMediaCodecis configured with aMediaCrypto.- See Also:
- Constant Field Values
-
CRYPTO_TYPE_CUSTOM_BASE
public static final int CRYPTO_TYPE_CUSTOM_BASE
Applications or extensions may define customCRYPTO_TYPE_*constants greater than or equal to this value.- See Also:
- Constant Field Values
-
CRYPTO_MODE_UNENCRYPTED
public static final int CRYPTO_MODE_UNENCRYPTED
-
CRYPTO_MODE_AES_CTR
public static final int CRYPTO_MODE_AES_CTR
-
CRYPTO_MODE_AES_CBC
public static final int CRYPTO_MODE_AES_CBC
-
AUDIO_SESSION_ID_UNSET
public static final int AUDIO_SESSION_ID_UNSET
Represents an unsetAudioTracksession identifier. Equal toAudioManager.AUDIO_SESSION_ID_GENERATE.- See Also:
- Constant Field Values
-
ENCODING_INVALID
public static final int ENCODING_INVALID
-
ENCODING_PCM_8BIT
public static final int ENCODING_PCM_8BIT
-
ENCODING_PCM_16BIT
public static final int ENCODING_PCM_16BIT
-
ENCODING_PCM_16BIT_BIG_ENDIAN
public static final int ENCODING_PCM_16BIT_BIG_ENDIAN
LikeENCODING_PCM_16BIT, but with the bytes in big endian order.- See Also:
- Constant Field Values
-
ENCODING_PCM_24BIT
public static final int ENCODING_PCM_24BIT
PCM encoding with 24 bits per sample.- See Also:
- Constant Field Values
-
ENCODING_PCM_32BIT
public static final int ENCODING_PCM_32BIT
PCM encoding with 32 bits per sample.- See Also:
- Constant Field Values
-
ENCODING_PCM_FLOAT
public static final int ENCODING_PCM_FLOAT
-
ENCODING_MP3
public static final int ENCODING_MP3
- See Also:
AudioFormat.ENCODING_MP3, Constant Field Values
-
ENCODING_AAC_LC
public static final int ENCODING_AAC_LC
- See Also:
AudioFormat.ENCODING_AAC_LC, Constant Field Values
-
ENCODING_AAC_HE_V1
public static final int ENCODING_AAC_HE_V1
-
ENCODING_AAC_HE_V2
public static final int ENCODING_AAC_HE_V2
-
ENCODING_AAC_XHE
public static final int ENCODING_AAC_XHE
-
ENCODING_AAC_ELD
public static final int ENCODING_AAC_ELD
-
ENCODING_AAC_ER_BSAC
public static final int ENCODING_AAC_ER_BSAC
AAC Error Resilient Bit-Sliced Arithmetic Coding.- See Also:
- Constant Field Values
-
ENCODING_AC3
public static final int ENCODING_AC3
- See Also:
AudioFormat.ENCODING_AC3, Constant Field Values
-
ENCODING_E_AC3
public static final int ENCODING_E_AC3
- See Also:
AudioFormat.ENCODING_E_AC3, Constant Field Values
-
ENCODING_E_AC3_JOC
public static final int ENCODING_E_AC3_JOC
-
ENCODING_AC4
public static final int ENCODING_AC4
- See Also:
AudioFormat.ENCODING_AC4, Constant Field Values
-
ENCODING_DTS
public static final int ENCODING_DTS
- See Also:
AudioFormat.ENCODING_DTS, Constant Field Values
-
ENCODING_DTS_HD
public static final int ENCODING_DTS_HD
- See Also:
AudioFormat.ENCODING_DTS_HD, Constant Field Values
-
ENCODING_DOLBY_TRUEHD
public static final int ENCODING_DOLBY_TRUEHD
-
SPATIALIZATION_BEHAVIOR_AUTO
public static final int SPATIALIZATION_BEHAVIOR_AUTO
See AudioAttributes#SPATIALIZATION_BEHAVIOR_AUTO- See Also:
- Constant Field Values
-
SPATIALIZATION_BEHAVIOR_NEVER
public static final int SPATIALIZATION_BEHAVIOR_NEVER
See AudioAttributes#SPATIALIZATION_BEHAVIOR_NEVER- See Also:
- Constant Field Values
-
STREAM_TYPE_ALARM
public static final int STREAM_TYPE_ALARM
- See Also:
AudioManager.STREAM_ALARM, Constant Field Values
-
STREAM_TYPE_DTMF
public static final int STREAM_TYPE_DTMF
- See Also:
AudioManager.STREAM_DTMF, Constant Field Values
-
STREAM_TYPE_MUSIC
public static final int STREAM_TYPE_MUSIC
- See Also:
AudioManager.STREAM_MUSIC, Constant Field Values
-
STREAM_TYPE_NOTIFICATION
public static final int STREAM_TYPE_NOTIFICATION
-
STREAM_TYPE_RING
public static final int STREAM_TYPE_RING
- See Also:
AudioManager.STREAM_RING, Constant Field Values
-
STREAM_TYPE_SYSTEM
public static final int STREAM_TYPE_SYSTEM
- See Also:
AudioManager.STREAM_SYSTEM, Constant Field Values
-
STREAM_TYPE_VOICE_CALL
public static final int STREAM_TYPE_VOICE_CALL
-
STREAM_TYPE_DEFAULT
public static final int STREAM_TYPE_DEFAULT
The default stream type used by audio renderers. Equal toSTREAM_TYPE_MUSIC.- See Also:
- Constant Field Values
-
CONTENT_TYPE_MOVIE
public static final int CONTENT_TYPE_MOVIE
-
CONTENT_TYPE_MUSIC
public static final int CONTENT_TYPE_MUSIC
-
CONTENT_TYPE_SONIFICATION
public static final int CONTENT_TYPE_SONIFICATION
-
CONTENT_TYPE_SPEECH
public static final int CONTENT_TYPE_SPEECH
-
CONTENT_TYPE_UNKNOWN
public static final int CONTENT_TYPE_UNKNOWN
-
FLAG_AUDIBILITY_ENFORCED
public static final int FLAG_AUDIBILITY_ENFORCED
-
USAGE_ALARM
public static final int USAGE_ALARM
- See Also:
AudioAttributes.USAGE_ALARM, Constant Field Values
-
USAGE_ASSISTANCE_ACCESSIBILITY
public static final int USAGE_ASSISTANCE_ACCESSIBILITY
-
USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
public static final int USAGE_ASSISTANCE_NAVIGATION_GUIDANCE
-
USAGE_ASSISTANCE_SONIFICATION
public static final int USAGE_ASSISTANCE_SONIFICATION
-
USAGE_ASSISTANT
public static final int USAGE_ASSISTANT
-
USAGE_GAME
public static final int USAGE_GAME
- See Also:
AudioAttributes.USAGE_GAME, Constant Field Values
-
USAGE_MEDIA
public static final int USAGE_MEDIA
- See Also:
AudioAttributes.USAGE_MEDIA, Constant Field Values
-
USAGE_NOTIFICATION
public static final int USAGE_NOTIFICATION
-
USAGE_NOTIFICATION_COMMUNICATION_DELAYED
public static final int USAGE_NOTIFICATION_COMMUNICATION_DELAYED
-
USAGE_NOTIFICATION_COMMUNICATION_INSTANT
public static final int USAGE_NOTIFICATION_COMMUNICATION_INSTANT
-
USAGE_NOTIFICATION_COMMUNICATION_REQUEST
public static final int USAGE_NOTIFICATION_COMMUNICATION_REQUEST
-
USAGE_NOTIFICATION_EVENT
public static final int USAGE_NOTIFICATION_EVENT
-
USAGE_NOTIFICATION_RINGTONE
public static final int USAGE_NOTIFICATION_RINGTONE
-
USAGE_UNKNOWN
public static final int USAGE_UNKNOWN
-
USAGE_VOICE_COMMUNICATION
public static final int USAGE_VOICE_COMMUNICATION
-
USAGE_VOICE_COMMUNICATION_SIGNALLING
public static final int USAGE_VOICE_COMMUNICATION_SIGNALLING
-
ALLOW_CAPTURE_BY_ALL
public static final int ALLOW_CAPTURE_BY_ALL
- See Also:
- Constant Field Values
-
ALLOW_CAPTURE_BY_NONE
public static final int ALLOW_CAPTURE_BY_NONE
- See Also:
- Constant Field Values
-
ALLOW_CAPTURE_BY_SYSTEM
public static final int ALLOW_CAPTURE_BY_SYSTEM
- See Also:
- Constant Field Values
-
BUFFER_FLAG_KEY_FRAME
public static final int BUFFER_FLAG_KEY_FRAME
Indicates that a buffer holds a synchronization sample.- See Also:
- Constant Field Values
-
BUFFER_FLAG_END_OF_STREAM
public static final int BUFFER_FLAG_END_OF_STREAM
Flag for empty buffers that signal that the end of the stream was reached.- See Also:
- Constant Field Values
-
BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA
public static final int BUFFER_FLAG_HAS_SUPPLEMENTAL_DATA
Indicates that a buffer has supplemental data.- See Also:
- Constant Field Values
-
BUFFER_FLAG_LAST_SAMPLE
public static final int BUFFER_FLAG_LAST_SAMPLE
Indicates that a buffer is known to contain the last media sample of the stream.- See Also:
- Constant Field Values
-
BUFFER_FLAG_ENCRYPTED
public static final int BUFFER_FLAG_ENCRYPTED
Indicates that a buffer is (at least partially) encrypted.- See Also:
- Constant Field Values
-
BUFFER_FLAG_DECODE_ONLY
public static final int BUFFER_FLAG_DECODE_ONLY
Indicates that a buffer should be decoded but not rendered.- See Also:
- Constant Field Values
-
VIDEO_OUTPUT_MODE_NONE
public static final int VIDEO_OUTPUT_MODE_NONE
Video decoder output mode is not set.- See Also:
- Constant Field Values
-
VIDEO_OUTPUT_MODE_YUV
public static final int VIDEO_OUTPUT_MODE_YUV
Video decoder output mode that outputs raw 4:2:0 YUV planes.- See Also:
- Constant Field Values
-
VIDEO_OUTPUT_MODE_SURFACE_YUV
public static final int VIDEO_OUTPUT_MODE_SURFACE_YUV
Video decoder output mode that renders 4:2:0 YUV planes directly to a surface.- See Also:
- Constant Field Values
-
VIDEO_SCALING_MODE_SCALE_TO_FIT
public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT
- See Also:
- Constant Field Values
-
VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
public static final int VIDEO_SCALING_MODE_SCALE_TO_FIT_WITH_CROPPING
- See Also:
- Constant Field Values
-
VIDEO_SCALING_MODE_DEFAULT
public static final int VIDEO_SCALING_MODE_DEFAULT
A default video scaling mode forMediaCodec-based renderers.- See Also:
- Constant Field Values
-
VIDEO_CHANGE_FRAME_RATE_STRATEGY_OFF
public static final int VIDEO_CHANGE_FRAME_RATE_STRATEGY_OFF
Strategy to never callSurface.setFrameRate(float, int, int). Use this strategy if you prefer to callSurface.setFrameRate(float, int, int)directly from application code.- See Also:
- Constant Field Values
-
VIDEO_CHANGE_FRAME_RATE_STRATEGY_ONLY_IF_SEAMLESS
public static final int VIDEO_CHANGE_FRAME_RATE_STRATEGY_ONLY_IF_SEAMLESS
Strategy to callSurface.setFrameRate(float, int, int)withSurface.CHANGE_FRAME_RATE_ONLY_IF_SEAMLESSwhen the output frame rate is known.- See Also:
- Constant Field Values
-
SELECTION_FLAG_DEFAULT
public static final int SELECTION_FLAG_DEFAULT
Indicates that the track should be selected if user preferences do not state otherwise.- See Also:
- Constant Field Values
-
SELECTION_FLAG_FORCED
public static final int SELECTION_FLAG_FORCED
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.
- See Also:
- Constant Field Values
-
SELECTION_FLAG_AUTOSELECT
public static final int SELECTION_FLAG_AUTOSELECT
Indicates that the player may choose to play the track in absence of an explicit user preference.- See Also:
- Constant Field Values
-
LANGUAGE_UNDETERMINED
public static final String LANGUAGE_UNDETERMINED
Represents an undetermined language as an ISO 639-2 language code.- See Also:
- Constant Field Values
-
TYPE_DASH
public static final int TYPE_DASH
Value returned byUtil.inferContentType(String)for DASH manifests.- See Also:
- Constant Field Values
-
TYPE_SS
public static final int TYPE_SS
Value returned byUtil.inferContentType(String)for Smooth Streaming manifests.- See Also:
- Constant Field Values
-
TYPE_HLS
public static final int TYPE_HLS
Value returned byUtil.inferContentType(String)for HLS manifests.- See Also:
- Constant Field Values
-
TYPE_RTSP
public static final int TYPE_RTSP
Value returned byUtil.inferContentType(String)for RTSP.- See Also:
- Constant Field Values
-
TYPE_OTHER
public static final int TYPE_OTHER
Value returned byUtil.inferContentType(String)for files other than DASH, HLS or Smooth Streaming manifests, or RTSP URIs.- See Also:
- Constant Field Values
-
RESULT_END_OF_INPUT
public static final int RESULT_END_OF_INPUT
A return value for methods where the end of an input was encountered.- See Also:
- Constant Field Values
-
RESULT_MAX_LENGTH_EXCEEDED
public static final int RESULT_MAX_LENGTH_EXCEEDED
A return value for methods where the length of parsed data exceeds the maximum length allowed.- See Also:
- Constant Field Values
-
RESULT_NOTHING_READ
public static final int RESULT_NOTHING_READ
A return value for methods where nothing was read.- See Also:
- Constant Field Values
-
RESULT_BUFFER_READ
public static final int RESULT_BUFFER_READ
A return value for methods where a buffer was read.- See Also:
- Constant Field Values
-
RESULT_FORMAT_READ
public static final int RESULT_FORMAT_READ
A return value for methods where a format was read.- See Also:
- Constant Field Values
-
DATA_TYPE_UNKNOWN
public static final int DATA_TYPE_UNKNOWN
A data type constant for data of unknown or unspecified type.- See Also:
- Constant Field Values
-
DATA_TYPE_MEDIA
public static final int DATA_TYPE_MEDIA
A data type constant for media, typically containing media samples.- See Also:
- Constant Field Values
-
DATA_TYPE_MEDIA_INITIALIZATION
public static final int DATA_TYPE_MEDIA_INITIALIZATION
A data type constant for media, typically containing only initialization data.- See Also:
- Constant Field Values
-
DATA_TYPE_DRM
public static final int DATA_TYPE_DRM
A data type constant for drm or encryption data.- See Also:
- Constant Field Values
-
DATA_TYPE_MANIFEST
public static final int DATA_TYPE_MANIFEST
A data type constant for a manifest file.- See Also:
- Constant Field Values
-
DATA_TYPE_TIME_SYNCHRONIZATION
public static final int DATA_TYPE_TIME_SYNCHRONIZATION
A data type constant for time synchronization data.- See Also:
- Constant Field Values
-
DATA_TYPE_AD
public static final int DATA_TYPE_AD
A data type constant for ads loader data.- See Also:
- Constant Field Values
-
DATA_TYPE_MEDIA_PROGRESSIVE_LIVE
public static final int DATA_TYPE_MEDIA_PROGRESSIVE_LIVE
A data type constant for live progressive media streams, typically containing media samples.- See Also:
- Constant Field Values
-
DATA_TYPE_CUSTOM_BASE
public static final int DATA_TYPE_CUSTOM_BASE
Applications or extensions may define customDATA_TYPE_*constants greater than or equal to this value.- See Also:
- Constant Field Values
-
TRACK_TYPE_NONE
public static final int TRACK_TYPE_NONE
A type constant for a fake or empty track.- See Also:
- Constant Field Values
-
TRACK_TYPE_UNKNOWN
public static final int TRACK_TYPE_UNKNOWN
A type constant for tracks of unknown type.- See Also:
- Constant Field Values
-
TRACK_TYPE_DEFAULT
public static final int TRACK_TYPE_DEFAULT
A type constant for tracks of some default type, where the type itself is unknown.- See Also:
- Constant Field Values
-
TRACK_TYPE_AUDIO
public static final int TRACK_TYPE_AUDIO
A type constant for audio tracks.- See Also:
- Constant Field Values
-
TRACK_TYPE_VIDEO
public static final int TRACK_TYPE_VIDEO
A type constant for video tracks.- See Also:
- Constant Field Values
-
TRACK_TYPE_TEXT
public static final int TRACK_TYPE_TEXT
A type constant for text tracks.- See Also:
- Constant Field Values
-
TRACK_TYPE_IMAGE
public static final int TRACK_TYPE_IMAGE
A type constant for image tracks.- See Also:
- Constant Field Values
-
TRACK_TYPE_METADATA
public static final int TRACK_TYPE_METADATA
A type constant for metadata tracks.- See Also:
- Constant Field Values
-
TRACK_TYPE_CAMERA_MOTION
public static final int TRACK_TYPE_CAMERA_MOTION
A type constant for camera motion tracks.- See Also:
- Constant Field Values
-
TRACK_TYPE_CUSTOM_BASE
public static final int TRACK_TYPE_CUSTOM_BASE
Applications or extensions may define customTRACK_TYPE_*constants greater than or equal to this value.- See Also:
- Constant Field Values
-
SELECTION_REASON_UNKNOWN
public static final int SELECTION_REASON_UNKNOWN
A selection reason constant for selections whose reasons are unknown or unspecified.- See Also:
- Constant Field Values
-
SELECTION_REASON_INITIAL
public static final int SELECTION_REASON_INITIAL
A selection reason constant for an initial track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_MANUAL
public static final int SELECTION_REASON_MANUAL
A selection reason constant for an manual (i.e. user initiated) track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_ADAPTIVE
public static final int SELECTION_REASON_ADAPTIVE
A selection reason constant for an adaptive track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_TRICK_PLAY
public static final int SELECTION_REASON_TRICK_PLAY
A selection reason constant for a trick play track selection.- See Also:
- Constant Field Values
-
SELECTION_REASON_CUSTOM_BASE
public static final int SELECTION_REASON_CUSTOM_BASE
Applications or extensions may define customSELECTION_REASON_*constants greater than or equal to this value.- See Also:
- Constant Field Values
-
DEFAULT_BUFFER_SEGMENT_SIZE
public static final int DEFAULT_BUFFER_SEGMENT_SIZE
A default size in bytes for an individual allocation that forms part of a larger buffer.- See Also:
- Constant Field Values
-
DEFAULT_SEEK_BACK_INCREMENT_MS
public static final long DEFAULT_SEEK_BACK_INCREMENT_MS
A default seek back increment, in milliseconds.- See Also:
- Constant Field Values
-
DEFAULT_SEEK_FORWARD_INCREMENT_MS
public static final long DEFAULT_SEEK_FORWARD_INCREMENT_MS
A default seek forward increment, in milliseconds.- See Also:
- Constant Field Values
-
DEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MS
public static final long DEFAULT_MAX_SEEK_TO_PREVIOUS_POSITION_MS
A default maximum position for which a seek to previous will seek to the previous window, in milliseconds.- See Also:
- Constant Field Values
-
CENC_TYPE_cenc
public static final String CENC_TYPE_cenc
"cenc" scheme type name as defined in ISO/IEC 23001-7:2016.- See Also:
- Constant Field Values
-
CENC_TYPE_cbc1
public static final String CENC_TYPE_cbc1
"cbc1" scheme type name as defined in ISO/IEC 23001-7:2016.- See Also:
- Constant Field Values
-
CENC_TYPE_cens
public static final String CENC_TYPE_cens
"cens" scheme type name as defined in ISO/IEC 23001-7:2016.- See Also:
- Constant Field Values
-
CENC_TYPE_cbcs
public static final String CENC_TYPE_cbcs
"cbcs" scheme type name as defined in ISO/IEC 23001-7:2016.- See Also:
- Constant Field Values
-
COMMON_PSSH_UUID
public static final UUID COMMON_PSSH_UUID
UUID for the W3C Common PSSH box.
-
CLEARKEY_UUID
public static final UUID CLEARKEY_UUID
UUID for the ClearKey DRM scheme.ClearKey is supported on Android devices running Android 5.0 (API Level 21) and up.
-
WIDEVINE_UUID
public static final UUID WIDEVINE_UUID
UUID for the Widevine DRM scheme.Widevine is supported on Android devices running Android 4.3 (API Level 18) and up.
-
PLAYREADY_UUID
public static final UUID PLAYREADY_UUID
UUID for the PlayReady DRM scheme.PlayReady is supported on all AndroidTV devices. Note that most other Android devices do not provide PlayReady support.
-
STEREO_MODE_MONO
public static final int STEREO_MODE_MONO
Indicates Monoscopic stereo layout, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
STEREO_MODE_TOP_BOTTOM
public static final int STEREO_MODE_TOP_BOTTOM
Indicates Top-Bottom stereo layout, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
STEREO_MODE_LEFT_RIGHT
public static final int STEREO_MODE_LEFT_RIGHT
Indicates Left-Right stereo layout, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
STEREO_MODE_STEREO_MESH
public static final int STEREO_MODE_STEREO_MESH
Indicates a stereo layout where the left and right eyes have separate meshes, used with 360/3D/VR videos.- See Also:
- Constant Field Values
-
COLOR_SPACE_BT709
public static final int COLOR_SPACE_BT709
-
COLOR_SPACE_BT601
public static final int COLOR_SPACE_BT601
-
COLOR_SPACE_BT2020
public static final int COLOR_SPACE_BT2020
-
COLOR_TRANSFER_SDR
public static final int COLOR_TRANSFER_SDR
-
COLOR_TRANSFER_ST2084
public static final int COLOR_TRANSFER_ST2084
-
COLOR_TRANSFER_HLG
public static final int COLOR_TRANSFER_HLG
-
COLOR_RANGE_LIMITED
public static final int COLOR_RANGE_LIMITED
-
COLOR_RANGE_FULL
public static final int COLOR_RANGE_FULL
-
PROJECTION_RECTANGULAR
public static final int PROJECTION_RECTANGULAR
Conventional rectangular projection.- See Also:
- Constant Field Values
-
PROJECTION_EQUIRECTANGULAR
public static final int PROJECTION_EQUIRECTANGULAR
Equirectangular spherical projection.- See Also:
- Constant Field Values
-
PROJECTION_CUBEMAP
public static final int PROJECTION_CUBEMAP
Cube map projection.- See Also:
- Constant Field Values
-
PROJECTION_MESH
public static final int PROJECTION_MESH
3-D mesh projection.- See Also:
- Constant Field Values
-
PRIORITY_PLAYBACK
public static final int PRIORITY_PLAYBACK
Priority for media playback.Larger values indicate higher priorities.
- See Also:
- Constant Field Values
-
PRIORITY_DOWNLOAD
public static final int PRIORITY_DOWNLOAD
Priority for media downloading.Larger values indicate higher priorities.
- See Also:
- Constant Field Values
-
NETWORK_TYPE_UNKNOWN
public static final int NETWORK_TYPE_UNKNOWN
Unknown network type.- See Also:
- Constant Field Values
-
NETWORK_TYPE_OFFLINE
public static final int NETWORK_TYPE_OFFLINE
No network connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_WIFI
public static final int NETWORK_TYPE_WIFI
Network type for a Wifi connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_2G
public static final int NETWORK_TYPE_2G
Network type for a 2G cellular connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_3G
public static final int NETWORK_TYPE_3G
Network type for a 3G cellular connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_4G
public static final int NETWORK_TYPE_4G
Network type for a 4G cellular connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_5G_SA
public static final int NETWORK_TYPE_5G_SA
Network type for a 5G stand-alone (SA) cellular connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_5G_NSA
public static final int NETWORK_TYPE_5G_NSA
Network type for a 5G non-stand-alone (NSA) cellular connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_CELLULAR_UNKNOWN
public static final int NETWORK_TYPE_CELLULAR_UNKNOWN
Network type for cellular connections which cannot be mapped to one ofNETWORK_TYPE_2G,NETWORK_TYPE_3G, orNETWORK_TYPE_4G.- See Also:
- Constant Field Values
-
NETWORK_TYPE_ETHERNET
public static final int NETWORK_TYPE_ETHERNET
Network type for an Ethernet connection.- See Also:
- Constant Field Values
-
NETWORK_TYPE_OTHER
public static final int NETWORK_TYPE_OTHER
Network type for other connections which are not Wifi or cellular (e.g. VPN, Bluetooth).- See Also:
- Constant Field Values
-
WAKE_MODE_NONE
public static final int WAKE_MODE_NONE
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.
- See Also:
- Constant Field Values
-
WAKE_MODE_LOCAL
public static final int WAKE_MODE_LOCAL
A wake mode that will cause the player to hold aPowerManager.WakeLockduring playback.This is suitable for applications that play media with the screen off and do not load media over wifi.
- See Also:
- Constant Field Values
-
WAKE_MODE_NETWORK
public static final int WAKE_MODE_NETWORK
A wake mode that will cause the player to hold aPowerManager.WakeLockand aWifiManager.WifiLockduring playback.This is suitable for applications that play media with the screen off and may load media over wifi.
- See Also:
- Constant Field Values
-
ROLE_FLAG_MAIN
public static final int ROLE_FLAG_MAIN
Indicates a main track.- See Also:
- Constant Field Values
-
ROLE_FLAG_ALTERNATE
public static final int ROLE_FLAG_ALTERNATE
Indicates an alternate track. For example a video track recorded from an different view point than the main track(s).- See Also:
- Constant Field Values
-
ROLE_FLAG_SUPPLEMENTARY
public static final int ROLE_FLAG_SUPPLEMENTARY
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.- See Also:
- Constant Field Values
-
ROLE_FLAG_COMMENTARY
public static final int ROLE_FLAG_COMMENTARY
Indicates the track contains commentary, for example from the director.- See Also:
- Constant Field Values
-
ROLE_FLAG_DUB
public static final int ROLE_FLAG_DUB
Indicates the track is in a different language from the original, for example dubbed audio or translated captions.- See Also:
- Constant Field Values
-
ROLE_FLAG_EMERGENCY
public static final int ROLE_FLAG_EMERGENCY
Indicates the track contains information about a current emergency.- See Also:
- Constant Field Values
-
ROLE_FLAG_CAPTION
public static final int ROLE_FLAG_CAPTION
Indicates the track contains captions. This flag may be set on video tracks to indicate the presence of burned in captions.- See Also:
- Constant Field Values
-
ROLE_FLAG_SUBTITLE
public static final int ROLE_FLAG_SUBTITLE
Indicates the track contains subtitles. This flag may be set on video tracks to indicate the presence of burned in subtitles.- See Also:
- Constant Field Values
-
ROLE_FLAG_SIGN
public static final int ROLE_FLAG_SIGN
Indicates the track contains a visual sign-language interpretation of an audio track.- See Also:
- Constant Field Values
-
ROLE_FLAG_DESCRIBES_VIDEO
public static final int ROLE_FLAG_DESCRIBES_VIDEO
Indicates the track contains an audio or textual description of a video track.- See Also:
- Constant Field Values
-
ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND
public static final int ROLE_FLAG_DESCRIBES_MUSIC_AND_SOUND
Indicates the track contains a textual description of music and sound.- See Also:
- Constant Field Values
-
ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY
public static final int ROLE_FLAG_ENHANCED_DIALOG_INTELLIGIBILITY
Indicates the track is designed for improved intelligibility of dialogue.- See Also:
- Constant Field Values
-
ROLE_FLAG_TRANSCRIBES_DIALOG
public static final int ROLE_FLAG_TRANSCRIBES_DIALOG
Indicates the track contains a transcription of spoken dialog.- See Also:
- Constant Field Values
-
ROLE_FLAG_EASY_TO_READ
public static final int ROLE_FLAG_EASY_TO_READ
Indicates the track contains a text that has been edited for ease of reading.- See Also:
- Constant Field Values
-
ROLE_FLAG_TRICK_PLAY
public static final int ROLE_FLAG_TRICK_PLAY
Indicates the track is intended for trick play.- See Also:
- Constant Field Values
-
FORMAT_HANDLED
public static final int FORMAT_HANDLED
TheRendereris capable of rendering the format.- See Also:
- Constant Field Values
-
FORMAT_EXCEEDS_CAPABILITIES
public static final int FORMAT_EXCEEDS_CAPABILITIES
TheRendereris capable of rendering formats with the same MIME type, but the properties of the format exceed the renderer's capabilities. There is a chance the renderer will be able to play the format in practice because some renderers report their capabilities conservatively, but the expected outcome is that playback will fail.Example: The
Rendereris capable of rendering H264 and the format's MIME type isMimeTypes#VIDEO_H264, but the format's resolution exceeds the maximum limit supported by the underlying H264 decoder.- See Also:
- Constant Field Values
-
FORMAT_UNSUPPORTED_DRM
public static final int FORMAT_UNSUPPORTED_DRM
TheRendereris capable of rendering formats with the same MIME type, but is not capable of rendering the format because the format's drm protection is not supported.Example: The
Rendereris capable of rendering H264 and the format's MIME type isMimeTypes.VIDEO_H264, but the format indicates PlayReady drm protection whereas the renderer only supports Widevine.- See Also:
- Constant Field Values
-
FORMAT_UNSUPPORTED_SUBTYPE
public static final int FORMAT_UNSUPPORTED_SUBTYPE
TheRendereris a general purpose renderer for formats of the same top-level type, but is not capable of rendering the format or any other format with the same MIME type because the sub-type is not supported.Example: The
Rendereris a general purpose audio renderer and the format's MIME type matches audio/[subtype], but there does not exist a suitable decoder for [subtype].- See Also:
- Constant Field Values
-
FORMAT_UNSUPPORTED_TYPE
public static final int FORMAT_UNSUPPORTED_TYPE
TheRendereris not capable of rendering the format, either because it does not support the format's top-level type, or because it's a specialized renderer for a different MIME type.Example: The
Rendereris a general purpose video renderer, but the format has an audio MIME type.- See Also:
- Constant Field Values
-
-
Method Detail
-
usToMs
@InlineMe(replacement="Util.usToMs(timeUs)", imports="com.google.android.exoplayer2.util.Util") @Deprecated public static long usToMs(long timeUs)Deprecated.UseUtil.usToMs(long).
-
msToUs
@InlineMe(replacement="Util.msToUs(timeMs)", imports="com.google.android.exoplayer2.util.Util") @Deprecated public static long msToUs(long timeMs)Deprecated.UseUtil.msToUs(long).
-
generateAudioSessionIdV21
@InlineMe(replacement="Util.generateAudioSessionIdV21(context)", imports="com.google.android.exoplayer2.util.Util") @Deprecated @RequiresApi(21) public static int generateAudioSessionIdV21(Context context)Deprecated.
-
getFormatSupportString
@InlineMe(replacement="Util.getFormatSupportString(formatSupport)", imports="com.google.android.exoplayer2.util.Util") @Deprecated public static String getFormatSupportString(@FormatSupport @com.google.android.exoplayer2.C.FormatSupport int formatSupport)Deprecated.
-
getErrorCodeForMediaDrmErrorCode
@InlineMe(replacement="Util.getErrorCodeForMediaDrmErrorCode(mediaDrmErrorCode)", imports="com.google.android.exoplayer2.util.Util") @Deprecated @ErrorCode public static @com.google.android.exoplayer2.PlaybackException.ErrorCode int getErrorCodeForMediaDrmErrorCode(int mediaDrmErrorCode)Deprecated.
-
-