Package com.google.android.exoplayer2
Interface RendererCapabilities
-
- All Known Implementing Classes:
BaseRenderer,CameraMotionRenderer,DecoderAudioRenderer,DecoderVideoRenderer,FakeAudioRenderer,FakeMediaClockRenderer,FakeRenderer,FakeVideoRenderer,FfmpegAudioRenderer,LibflacAudioRenderer,Libgav1VideoRenderer,LibopusAudioRenderer,LibvpxVideoRenderer,MediaCodecAudioRenderer,MediaCodecRenderer,MediaCodecVideoRenderer,MetadataRenderer,NoSampleRenderer,TextRenderer
@Deprecated public interface RendererCapabilities
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Defines the capabilities of aRenderer.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceRendererCapabilities.AdaptiveSupportDeprecated.Level of renderer support for adaptive format switches.static interfaceRendererCapabilities.CapabilitiesDeprecated.Combined renderer capabilities.static interfaceRendererCapabilities.DecoderSupportDeprecated.Level of decoder support.static interfaceRendererCapabilities.FormatSupportDeprecated.UseC.FormatSupportinstead.static interfaceRendererCapabilities.HardwareAccelerationSupportDeprecated.Level of renderer support for hardware acceleration.static interfaceRendererCapabilities.ListenerDeprecated.Listener for renderer capabilities events.static interfaceRendererCapabilities.TunnelingSupportDeprecated.Level of renderer support for tunneling.
-
Field Summary
Fields Modifier and Type Field Description static intADAPTIVE_NOT_SEAMLESSDeprecated.TheRenderercan adapt between formats, but may suffer a brief discontinuity (~50-100ms) when adaptation occurs.static intADAPTIVE_NOT_SUPPORTEDDeprecated.TheRendererdoes not support adaptation between formats.static intADAPTIVE_SEAMLESSDeprecated.TheRenderercan seamlessly adapt between formats.static intADAPTIVE_SUPPORT_MASKDeprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtain theRendererCapabilities.AdaptiveSupportonly.static intDECODER_SUPPORT_FALLBACKDeprecated.The format exceeds the primary decoder's capabilities but is supported by fallback decoderstatic intDECODER_SUPPORT_FALLBACK_MIMETYPEDeprecated.The format's MIME type is unsupported and the renderer may use a decoder for a fallback MIME type.static intDECODER_SUPPORT_PRIMARYDeprecated.The renderer is able to use the primary decoder for the format's MIME type.static intFORMAT_EXCEEDS_CAPABILITIESDeprecated.UseC.FORMAT_EXCEEDS_CAPABILITIESinstead.static intFORMAT_HANDLEDDeprecated.UseC.FORMAT_HANDLEDinstead.static intFORMAT_SUPPORT_MASKDeprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtain theC.FormatSupportonly.static intFORMAT_UNSUPPORTED_DRMDeprecated.UseC.FORMAT_UNSUPPORTED_DRMinstead.static intFORMAT_UNSUPPORTED_SUBTYPEDeprecated.UseC.FORMAT_UNSUPPORTED_SUBTYPEinstead.static intFORMAT_UNSUPPORTED_TYPEDeprecated.UseC.FORMAT_UNSUPPORTED_TYPEinstead.static intHARDWARE_ACCELERATION_NOT_SUPPORTEDDeprecated.The renderer is not able to use hardware acceleration.static intHARDWARE_ACCELERATION_SUPPORT_MASKDeprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtainRendererCapabilities.HardwareAccelerationSupportonly.static intHARDWARE_ACCELERATION_SUPPORTEDDeprecated.The renderer is able to use hardware acceleration.static intMODE_SUPPORT_MASKDeprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtainRendererCapabilities.DecoderSupportonly.static intTUNNELING_NOT_SUPPORTEDDeprecated.TheRendererdoes not support tunneled output.static intTUNNELING_SUPPORT_MASKDeprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtainRendererCapabilities.TunnelingSupportonly.static intTUNNELING_SUPPORTEDDeprecated.TheRenderersupports tunneled output.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default voidclearListener()Deprecated.Clears theRendererCapabilities.Listener.static @com.google.android.exoplayer2.RendererCapabilities.Capabilities intcreate(@com.google.android.exoplayer2.C.FormatSupport int formatSupport)Deprecated.ReturnsRendererCapabilities.Capabilitiesfor the givenC.FormatSupport.static @com.google.android.exoplayer2.RendererCapabilities.Capabilities intcreate(@com.google.android.exoplayer2.C.FormatSupport int formatSupport, @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int adaptiveSupport, @com.google.android.exoplayer2.RendererCapabilities.TunnelingSupport int tunnelingSupport)Deprecated.ReturnsRendererCapabilities.Capabilitiescombining the givenC.FormatSupport,RendererCapabilities.AdaptiveSupportandRendererCapabilities.TunnelingSupport.static @com.google.android.exoplayer2.RendererCapabilities.Capabilities intcreate(@com.google.android.exoplayer2.C.FormatSupport int formatSupport, @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int adaptiveSupport, @com.google.android.exoplayer2.RendererCapabilities.TunnelingSupport int tunnelingSupport, @com.google.android.exoplayer2.RendererCapabilities.HardwareAccelerationSupport int hardwareAccelerationSupport, @com.google.android.exoplayer2.RendererCapabilities.DecoderSupport int decoderSupport)Deprecated.static @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport intgetAdaptiveSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)Deprecated.Returns theRendererCapabilities.AdaptiveSupportfrom the combinedRendererCapabilities.Capabilities.static @com.google.android.exoplayer2.RendererCapabilities.DecoderSupport intgetDecoderSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)Deprecated.Returns theRendererCapabilities.DecoderSupportfrom the combinedRendererCapabilities.Capabilities.static @com.google.android.exoplayer2.C.FormatSupport intgetFormatSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)Deprecated.Returns theC.FormatSupportfrom the combinedRendererCapabilities.Capabilities.static @com.google.android.exoplayer2.RendererCapabilities.HardwareAccelerationSupport intgetHardwareAccelerationSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)Deprecated.Returns theRendererCapabilities.HardwareAccelerationSupportfrom the combinedRendererCapabilities.Capabilities.StringgetName()Deprecated.Returns the name of theRenderer.@com.google.android.exoplayer2.C.TrackType intgetTrackType()Deprecated.Returns the track type that theRendererhandles.static @com.google.android.exoplayer2.RendererCapabilities.TunnelingSupport intgetTunnelingSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)Deprecated.Returns theRendererCapabilities.TunnelingSupportfrom the combinedRendererCapabilities.Capabilities.default voidsetListener(RendererCapabilities.Listener listener)Deprecated.Sets theRendererCapabilities.Listener.@com.google.android.exoplayer2.RendererCapabilities.Capabilities intsupportsFormat(Format format)Deprecated.Returns the extent to which theRenderersupports a given format.@com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport intsupportsMixedMimeTypeAdaptation()Deprecated.Returns the extent to which theRenderersupports adapting between supported formats that have different MIME types.
-
-
-
Field Detail
-
FORMAT_SUPPORT_MASK
static final int FORMAT_SUPPORT_MASK
Deprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtain theC.FormatSupportonly.- See Also:
- Constant Field Values
-
FORMAT_HANDLED
@Deprecated static final int FORMAT_HANDLED
Deprecated.UseC.FORMAT_HANDLEDinstead.- See Also:
- Constant Field Values
-
FORMAT_EXCEEDS_CAPABILITIES
@Deprecated static final int FORMAT_EXCEEDS_CAPABILITIES
Deprecated.UseC.FORMAT_EXCEEDS_CAPABILITIESinstead.- See Also:
- Constant Field Values
-
FORMAT_UNSUPPORTED_DRM
@Deprecated static final int FORMAT_UNSUPPORTED_DRM
Deprecated.UseC.FORMAT_UNSUPPORTED_DRMinstead.- See Also:
- Constant Field Values
-
FORMAT_UNSUPPORTED_SUBTYPE
@Deprecated static final int FORMAT_UNSUPPORTED_SUBTYPE
Deprecated.UseC.FORMAT_UNSUPPORTED_SUBTYPEinstead.- See Also:
- Constant Field Values
-
FORMAT_UNSUPPORTED_TYPE
@Deprecated static final int FORMAT_UNSUPPORTED_TYPE
Deprecated.UseC.FORMAT_UNSUPPORTED_TYPEinstead.- See Also:
- Constant Field Values
-
ADAPTIVE_SUPPORT_MASK
static final int ADAPTIVE_SUPPORT_MASK
Deprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtain theRendererCapabilities.AdaptiveSupportonly.- See Also:
- Constant Field Values
-
ADAPTIVE_SEAMLESS
static final int ADAPTIVE_SEAMLESS
Deprecated.TheRenderercan seamlessly adapt between formats.- See Also:
- Constant Field Values
-
ADAPTIVE_NOT_SEAMLESS
static final int ADAPTIVE_NOT_SEAMLESS
Deprecated.TheRenderercan adapt between formats, but may suffer a brief discontinuity (~50-100ms) when adaptation occurs.- See Also:
- Constant Field Values
-
ADAPTIVE_NOT_SUPPORTED
static final int ADAPTIVE_NOT_SUPPORTED
Deprecated.TheRendererdoes not support adaptation between formats.- See Also:
- Constant Field Values
-
TUNNELING_SUPPORT_MASK
static final int TUNNELING_SUPPORT_MASK
Deprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtainRendererCapabilities.TunnelingSupportonly.- See Also:
- Constant Field Values
-
TUNNELING_SUPPORTED
static final int TUNNELING_SUPPORTED
Deprecated.TheRenderersupports tunneled output.- See Also:
- Constant Field Values
-
TUNNELING_NOT_SUPPORTED
static final int TUNNELING_NOT_SUPPORTED
Deprecated.TheRendererdoes not support tunneled output.- See Also:
- Constant Field Values
-
HARDWARE_ACCELERATION_SUPPORT_MASK
static final int HARDWARE_ACCELERATION_SUPPORT_MASK
Deprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtainRendererCapabilities.HardwareAccelerationSupportonly.- See Also:
- Constant Field Values
-
HARDWARE_ACCELERATION_SUPPORTED
static final int HARDWARE_ACCELERATION_SUPPORTED
Deprecated.The renderer is able to use hardware acceleration.- See Also:
- Constant Field Values
-
HARDWARE_ACCELERATION_NOT_SUPPORTED
static final int HARDWARE_ACCELERATION_NOT_SUPPORTED
Deprecated.The renderer is not able to use hardware acceleration.- See Also:
- Constant Field Values
-
MODE_SUPPORT_MASK
static final int MODE_SUPPORT_MASK
Deprecated.A mask to apply toRendererCapabilities.Capabilitiesto obtainRendererCapabilities.DecoderSupportonly.- See Also:
- Constant Field Values
-
DECODER_SUPPORT_FALLBACK_MIMETYPE
static final int DECODER_SUPPORT_FALLBACK_MIMETYPE
Deprecated.The format's MIME type is unsupported and the renderer may use a decoder for a fallback MIME type.- See Also:
- Constant Field Values
-
DECODER_SUPPORT_PRIMARY
static final int DECODER_SUPPORT_PRIMARY
Deprecated.The renderer is able to use the primary decoder for the format's MIME type.- See Also:
- Constant Field Values
-
DECODER_SUPPORT_FALLBACK
static final int DECODER_SUPPORT_FALLBACK
Deprecated.The format exceeds the primary decoder's capabilities but is supported by fallback decoder- See Also:
- Constant Field Values
-
-
Method Detail
-
create
static @com.google.android.exoplayer2.RendererCapabilities.Capabilities int create(@FormatSupport @com.google.android.exoplayer2.C.FormatSupport int formatSupport)
Deprecated.ReturnsRendererCapabilities.Capabilitiesfor the givenC.FormatSupport.RendererCapabilities.AdaptiveSupportis set toADAPTIVE_NOT_SUPPORTED,RendererCapabilities.TunnelingSupportis set toTUNNELING_NOT_SUPPORTED,RendererCapabilities.HardwareAccelerationSupportis set toHARDWARE_ACCELERATION_NOT_SUPPORTEDandRendererCapabilities.DecoderSupportis set toDECODER_SUPPORT_PRIMARY.- Parameters:
formatSupport- TheC.FormatSupport.- Returns:
- The combined
RendererCapabilities.Capabilitiesof the givenC.FormatSupport,ADAPTIVE_NOT_SUPPORTEDandTUNNELING_NOT_SUPPORTED.
-
create
static @com.google.android.exoplayer2.RendererCapabilities.Capabilities int create(@FormatSupport @com.google.android.exoplayer2.C.FormatSupport int formatSupport, @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int adaptiveSupport, @com.google.android.exoplayer2.RendererCapabilities.TunnelingSupport int tunnelingSupport)
Deprecated.ReturnsRendererCapabilities.Capabilitiescombining the givenC.FormatSupport,RendererCapabilities.AdaptiveSupportandRendererCapabilities.TunnelingSupport.RendererCapabilities.HardwareAccelerationSupportis set toHARDWARE_ACCELERATION_NOT_SUPPORTEDandRendererCapabilities.DecoderSupportis set toDECODER_SUPPORT_PRIMARY.- Parameters:
formatSupport- TheC.FormatSupport.adaptiveSupport- TheRendererCapabilities.AdaptiveSupport.tunnelingSupport- TheRendererCapabilities.TunnelingSupport.- Returns:
- The combined
RendererCapabilities.Capabilities.
-
create
static @com.google.android.exoplayer2.RendererCapabilities.Capabilities int create(@FormatSupport @com.google.android.exoplayer2.C.FormatSupport int formatSupport, @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int adaptiveSupport, @com.google.android.exoplayer2.RendererCapabilities.TunnelingSupport int tunnelingSupport, @com.google.android.exoplayer2.RendererCapabilities.HardwareAccelerationSupport int hardwareAccelerationSupport, @com.google.android.exoplayer2.RendererCapabilities.DecoderSupport int decoderSupport)
Deprecated.ReturnsRendererCapabilities.Capabilitiescombining the givenC.FormatSupport,RendererCapabilities.AdaptiveSupport,RendererCapabilities.TunnelingSupport,RendererCapabilities.HardwareAccelerationSupportandRendererCapabilities.DecoderSupport.- Parameters:
formatSupport- TheC.FormatSupport.adaptiveSupport- TheRendererCapabilities.AdaptiveSupport.tunnelingSupport- TheRendererCapabilities.TunnelingSupport.hardwareAccelerationSupport- TheRendererCapabilities.HardwareAccelerationSupport.decoderSupport- TheRendererCapabilities.DecoderSupport.- Returns:
- The combined
RendererCapabilities.Capabilities.
-
getFormatSupport
@FormatSupport static @com.google.android.exoplayer2.C.FormatSupport int getFormatSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)
Deprecated.Returns theC.FormatSupportfrom the combinedRendererCapabilities.Capabilities.- Parameters:
supportFlags- The combinedRendererCapabilities.Capabilities.- Returns:
- The
C.FormatSupportonly.
-
getAdaptiveSupport
static @com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int getAdaptiveSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)
Deprecated.Returns theRendererCapabilities.AdaptiveSupportfrom the combinedRendererCapabilities.Capabilities.- Parameters:
supportFlags- The combinedRendererCapabilities.Capabilities.- Returns:
- The
RendererCapabilities.AdaptiveSupportonly.
-
getTunnelingSupport
static @com.google.android.exoplayer2.RendererCapabilities.TunnelingSupport int getTunnelingSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)
Deprecated.Returns theRendererCapabilities.TunnelingSupportfrom the combinedRendererCapabilities.Capabilities.- Parameters:
supportFlags- The combinedRendererCapabilities.Capabilities.- Returns:
- The
RendererCapabilities.TunnelingSupportonly.
-
getHardwareAccelerationSupport
static @com.google.android.exoplayer2.RendererCapabilities.HardwareAccelerationSupport int getHardwareAccelerationSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)
Deprecated.Returns theRendererCapabilities.HardwareAccelerationSupportfrom the combinedRendererCapabilities.Capabilities.- Parameters:
supportFlags- The combinedRendererCapabilities.Capabilities.- Returns:
- The
RendererCapabilities.HardwareAccelerationSupportonly.
-
getDecoderSupport
static @com.google.android.exoplayer2.RendererCapabilities.DecoderSupport int getDecoderSupport(@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportFlags)
Deprecated.Returns theRendererCapabilities.DecoderSupportfrom the combinedRendererCapabilities.Capabilities.- Parameters:
supportFlags- The combinedRendererCapabilities.Capabilities.- Returns:
- The
RendererCapabilities.DecoderSupportonly.
-
getTrackType
@com.google.android.exoplayer2.C.TrackType int getTrackType()
Deprecated.Returns the track type that theRendererhandles. For example, a video renderer will returnC.TRACK_TYPE_VIDEO, an audio renderer will returnC.TRACK_TYPE_AUDIO, a text renderer will returnC.TRACK_TYPE_TEXT, and so on.- Returns:
- The
track type. - See Also:
Renderer.getTrackType()
-
supportsFormat
@com.google.android.exoplayer2.RendererCapabilities.Capabilities int supportsFormat(Format format) throws ExoPlaybackException
Deprecated.Returns the extent to which theRenderersupports a given format.- Parameters:
format- The format.- Returns:
- The
RendererCapabilities.Capabilitiesfor this format. - Throws:
ExoPlaybackException- If an error occurs.
-
supportsMixedMimeTypeAdaptation
@com.google.android.exoplayer2.RendererCapabilities.AdaptiveSupport int supportsMixedMimeTypeAdaptation() throws ExoPlaybackExceptionDeprecated.Returns the extent to which theRenderersupports adapting between supported formats that have different MIME types.- Returns:
- The
RendererCapabilities.AdaptiveSupportfor adapting between supported formats that have different MIME types. - Throws:
ExoPlaybackException- If an error occurs.
-
setListener
default void setListener(RendererCapabilities.Listener listener)
Deprecated.Sets theRendererCapabilities.Listener.- Parameters:
listener- The listener to be set.
-
clearListener
default void clearListener()
Deprecated.Clears theRendererCapabilities.Listener.
-
-