RendererCapabilities.Capabilities
Artifact: androidx.media3:media3-exoplayer
@Documented
@Retention(value = RetentionPolicy.SOURCE)
@Target(value = TYPE_USE)
@IntDef(value = )
public annotation RendererCapabilities.Capabilities
Combined renderer capabilities.
This is a bitwise OR of C.FormatSupport
, AdaptiveSupport
, , HardwareAccelerationSupport
, DecoderSupport
and . 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_SUBTYPE
andFORMAT_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_SEAMLESS
andADAPTIVE_NOT_SUPPORTED
. Only set if the level of support for the format itself isFORMAT_HANDLED
orFORMAT_EXCEEDS_CAPABILITIES
.TunnelingSupport
: The level of support for tunneling. One ofTUNNELING_SUPPORTED
andTUNNELING_NOT_SUPPORTED
. Only set if the level of support for the format itself isFORMAT_HANDLED
orFORMAT_EXCEEDS_CAPABILITIES
.HardwareAccelerationSupport
: The level of support for hardware acceleration. One ofHARDWARE_ACCELERATION_SUPPORTED
andHARDWARE_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_SUPPORTED
or beAUDIO_OFFLOAD_NOT_SUPPORTED
. In addition, if it isAUDIO_OFFLOAD_SUPPORTED
, then one can check forAUDIO_OFFLOAD_SPEED_CHANGE_SUPPORTED
andAUDIO_OFFLOAD_GAPLESS_SUPPORTED
. These represent speed change and gapless transition support with audio offload respectively.