RendererCapabilities.Capabilities
Artifact: androidx.media3:media3-exoplayer
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = ElementType.TYPE_USE)
@IntDef(value = )
public annotation RendererCapabilities.Capabilities
Combined renderer capabilities.
This is a bitwise OR of C.FormatSupport, AdaptiveSupport, TunnelingSupport, HardwareAccelerationSupport, DecoderSupport and AudioOffloadSupport. Use getFormatSupport, getAdaptiveSupport, getTunnelingSupport, getHardwareAccelerationSupport, getDecoderSupport and AudioOffloadSupport to obtain individual components. Use create, create, create, or create to create combined capabilities from individual components.
Possible values:
C.FormatSupport: The level of support for the format itself. One ofFORMAT_HANDLED,FORMAT_EXCEEDS_CAPABILITIES,FORMAT_UNSUPPORTED_DRM,FORMAT_UNSUPPORTED_SUBTYPEandFORMAT_UNSUPPORTED_TYPE.AdaptiveSupport: The level of support for adapting from the format to another format of the same MIME type. One ofADAPTIVE_SEAMLESS,ADAPTIVE_NOT_SEAMLESSandADAPTIVE_NOT_SUPPORTED. Only set if the level of support for the format itself isFORMAT_HANDLEDorFORMAT_EXCEEDS_CAPABILITIES.TunnelingSupport: The level of support for tunneling. One ofTUNNELING_SUPPORTEDandTUNNELING_NOT_SUPPORTED. Only set if the level of support for the format itself isFORMAT_HANDLEDorFORMAT_EXCEEDS_CAPABILITIES.HardwareAccelerationSupport: The level of support for hardware acceleration. One ofHARDWARE_ACCELERATION_SUPPORTEDandHARDWARE_ACCELERATION_NOT_SUPPORTED.DecoderSupport: The level of decoder support. One ofDECODER_SUPPORT_PRIMARY,DECODER_SUPPORT_FALLBACK, orDECODER_SUPPORT_FALLBACK_MIMETYPE.AudioOffloadSupport: The level of offload support. Value will have the flagAUDIO_OFFLOAD_SUPPORTEDor beAUDIO_OFFLOAD_NOT_SUPPORTED. In addition, if it isAUDIO_OFFLOAD_SUPPORTED, then one can check forAUDIO_OFFLOAD_SPEED_CHANGE_SUPPORTEDandAUDIO_OFFLOAD_GAPLESS_SUPPORTED. These represent speed change and gapless transition support with audio offload respectively.