BaseRenderer
, CameraMotionRenderer
, DecoderAudioRenderer
, DecoderVideoRenderer
, FakeAudioRenderer
, FakeMediaClockRenderer
, FakeRenderer
, FakeVideoRenderer
, FfmpegAudioRenderer
, LibflacAudioRenderer
, Libgav1VideoRenderer
, LibopusAudioRenderer
, LibvpxVideoRenderer
, MediaCodecAudioRenderer
, MediaCodecRenderer
, MediaCodecVideoRenderer
, MetadataRenderer
, NoSampleRenderer
, TextRenderer
public interface RendererCapabilities
Renderer
.Modifier and Type | Interface | Description |
---|---|---|
static interface |
RendererCapabilities.AdaptiveSupport |
Level of renderer support for adaptive format switches.
|
static interface |
RendererCapabilities.Capabilities |
Combined renderer capabilities.
|
static interface |
RendererCapabilities.FormatSupport |
Deprecated.
Use
C.FormatSupport instead. |
static interface |
RendererCapabilities.TunnelingSupport |
Level of renderer support for tunneling.
|
Modifier and Type | Field | Description |
---|---|---|
static int |
ADAPTIVE_NOT_SEAMLESS |
The
Renderer can adapt between formats, but may suffer a brief discontinuity
(~50-100ms) when adaptation occurs. |
static int |
ADAPTIVE_NOT_SUPPORTED |
The
Renderer does not support adaptation between formats. |
static int |
ADAPTIVE_SEAMLESS |
The
Renderer can seamlessly adapt between formats. |
static int |
ADAPTIVE_SUPPORT_MASK |
A mask to apply to
RendererCapabilities.Capabilities to obtain the RendererCapabilities.AdaptiveSupport only. |
static int |
FORMAT_EXCEEDS_CAPABILITIES |
Deprecated.
Use
C.FORMAT_EXCEEDS_CAPABILITIES instead. |
static int |
FORMAT_HANDLED |
Deprecated.
Use
C.FORMAT_HANDLED instead. |
static int |
FORMAT_SUPPORT_MASK |
A mask to apply to
RendererCapabilities.Capabilities to obtain the C.FormatSupport only. |
static int |
FORMAT_UNSUPPORTED_DRM |
Deprecated.
Use
C.FORMAT_UNSUPPORTED_DRM instead. |
static int |
FORMAT_UNSUPPORTED_SUBTYPE |
Deprecated.
Use
C.FORMAT_UNSUPPORTED_SUBTYPE instead. |
static int |
FORMAT_UNSUPPORTED_TYPE |
Deprecated.
Use
C.FORMAT_UNSUPPORTED_TYPE instead. |
static int |
TUNNELING_NOT_SUPPORTED |
The
Renderer does not support tunneled output. |
static int |
TUNNELING_SUPPORT_MASK |
A mask to apply to
RendererCapabilities.Capabilities to obtain the RendererCapabilities.TunnelingSupport only. |
static int |
TUNNELING_SUPPORTED |
The
Renderer supports tunneled output. |
Modifier and Type | Method | Description |
---|---|---|
static int |
create(int formatSupport) |
Returns
RendererCapabilities.Capabilities for the given C.FormatSupport . |
static int |
create(int formatSupport,
int adaptiveSupport,
int tunnelingSupport) |
Returns
RendererCapabilities.Capabilities combining the given C.FormatSupport , RendererCapabilities.AdaptiveSupport and RendererCapabilities.TunnelingSupport . |
static int |
getAdaptiveSupport(int supportFlags) |
Returns the
RendererCapabilities.AdaptiveSupport from the combined RendererCapabilities.Capabilities . |
static int |
getFormatSupport(int supportFlags) |
Returns the
C.FormatSupport from the combined RendererCapabilities.Capabilities . |
String |
getName() |
Returns the name of the
Renderer . |
int |
getTrackType() |
Returns the track type that the
Renderer handles. |
static int |
getTunnelingSupport(int supportFlags) |
Returns the
RendererCapabilities.TunnelingSupport from the combined RendererCapabilities.Capabilities . |
int |
supportsFormat(Format format) |
Returns the extent to which the
Renderer supports a given format. |
int |
supportsMixedMimeTypeAdaptation() |
Returns the extent to which the
Renderer supports adapting between supported formats
that have different MIME types. |
static final int FORMAT_SUPPORT_MASK
RendererCapabilities.Capabilities
to obtain the C.FormatSupport
only.@Deprecated static final int FORMAT_HANDLED
C.FORMAT_HANDLED
instead.@Deprecated static final int FORMAT_EXCEEDS_CAPABILITIES
C.FORMAT_EXCEEDS_CAPABILITIES
instead.@Deprecated static final int FORMAT_UNSUPPORTED_DRM
C.FORMAT_UNSUPPORTED_DRM
instead.@Deprecated static final int FORMAT_UNSUPPORTED_SUBTYPE
C.FORMAT_UNSUPPORTED_SUBTYPE
instead.@Deprecated static final int FORMAT_UNSUPPORTED_TYPE
C.FORMAT_UNSUPPORTED_TYPE
instead.static final int ADAPTIVE_SUPPORT_MASK
RendererCapabilities.Capabilities
to obtain the RendererCapabilities.AdaptiveSupport
only.static final int ADAPTIVE_SEAMLESS
Renderer
can seamlessly adapt between formats.static final int ADAPTIVE_NOT_SEAMLESS
Renderer
can adapt between formats, but may suffer a brief discontinuity
(~50-100ms) when adaptation occurs.static final int ADAPTIVE_NOT_SUPPORTED
Renderer
does not support adaptation between formats.static final int TUNNELING_SUPPORT_MASK
RendererCapabilities.Capabilities
to obtain the RendererCapabilities.TunnelingSupport
only.static final int TUNNELING_SUPPORTED
Renderer
supports tunneled output.static final int TUNNELING_NOT_SUPPORTED
Renderer
does not support tunneled output.@Capabilities static int create(@FormatSupport int formatSupport)
RendererCapabilities.Capabilities
for the given C.FormatSupport
.
The RendererCapabilities.AdaptiveSupport
is set to ADAPTIVE_NOT_SUPPORTED
and {RendererCapabilities.TunnelingSupport
is set to TUNNELING_NOT_SUPPORTED
.
formatSupport
- The C.FormatSupport
.RendererCapabilities.Capabilities
of the given C.FormatSupport
, ADAPTIVE_NOT_SUPPORTED
and TUNNELING_NOT_SUPPORTED
.@Capabilities static int create(@FormatSupport int formatSupport, @AdaptiveSupport int adaptiveSupport, @TunnelingSupport int tunnelingSupport)
RendererCapabilities.Capabilities
combining the given C.FormatSupport
, RendererCapabilities.AdaptiveSupport
and RendererCapabilities.TunnelingSupport
.formatSupport
- The C.FormatSupport
.adaptiveSupport
- The RendererCapabilities.AdaptiveSupport
.tunnelingSupport
- The RendererCapabilities.TunnelingSupport
.RendererCapabilities.Capabilities
.@FormatSupport static int getFormatSupport(@Capabilities int supportFlags)
C.FormatSupport
from the combined RendererCapabilities.Capabilities
.supportFlags
- The combined RendererCapabilities.Capabilities
.C.FormatSupport
only.@AdaptiveSupport static int getAdaptiveSupport(@Capabilities int supportFlags)
RendererCapabilities.AdaptiveSupport
from the combined RendererCapabilities.Capabilities
.supportFlags
- The combined RendererCapabilities.Capabilities
.RendererCapabilities.AdaptiveSupport
only.@TunnelingSupport static int getTunnelingSupport(@Capabilities int supportFlags)
RendererCapabilities.TunnelingSupport
from the combined RendererCapabilities.Capabilities
.supportFlags
- The combined RendererCapabilities.Capabilities
.RendererCapabilities.TunnelingSupport
only.int getTrackType()
Renderer
handles. For example, a video renderer will
return C.TRACK_TYPE_VIDEO
, an audio renderer will return C.TRACK_TYPE_AUDIO
, a
text renderer will return C.TRACK_TYPE_TEXT
, and so on.TRACK_TYPE_*
constants defined in C
.Renderer.getTrackType()
@Capabilities int supportsFormat(Format format) throws ExoPlaybackException
Renderer
supports a given format.format
- The format.RendererCapabilities.Capabilities
for this format.ExoPlaybackException
- If an error occurs.@AdaptiveSupport int supportsMixedMimeTypeAdaptation() throws ExoPlaybackException
Renderer
supports adapting between supported formats
that have different MIME types.RendererCapabilities.AdaptiveSupport
for adapting between supported formats that have different
MIME types.ExoPlaybackException
- If an error occurs.