RendererConfiguration
Artifact: androidx.media3:media3-exoplayer
@UnstableApi
public final class RendererConfiguration
The configuration of a Renderer.
Summary
Constants |
|
|---|---|
static final RendererConfiguration |
The default configuration. |
Public fields |
|
|---|---|
final int |
The offload mode preference with which to configure the renderer. |
final boolean |
Whether to enable tunneling. |
Public constructors |
|---|
RendererConfiguration(boolean tunneling)Creates an instance with |
RendererConfiguration(Creates an instance. |
Constants
Public fields
offloadModePreferred
@AudioSink.OffloadMode
public final int offloadModePreferred
The offload mode preference with which to configure the renderer.
Public constructors
RendererConfiguration
public RendererConfiguration(boolean tunneling)
Creates an instance with tunneling and sets offloadModePreferred to OFFLOAD_MODE_DISABLED.
| Parameters | |
|---|---|
boolean tunneling |
Whether to enable tunneling. |
RendererConfiguration
public RendererConfiguration(
@AudioSink.OffloadMode int offloadModePreferred,
boolean tunneling
)
Creates an instance.
| Parameters | |
|---|---|
@AudioSink.OffloadMode int offloadModePreferred |
The offload mode to use. |
boolean tunneling |
Whether to enable tunneling. |