public static final class RendererConfig.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RendererConfig |
build() |
RendererConfig.Builder |
setBufferSegmentCount(int bufferSegmentCount)
Sets the number of segments to buffer ahead.
|
RendererConfig.Builder |
setBufferSegmentSize(int bufferSegmentSize)
Sets the buffer segment size, the size in bytes for each segment of the buffer.
|
RendererConfig.Builder |
setHttpConnectTimeoutMillis(int httpConnectTimeoutMillis)
Sets the http connect timeout value, the maximum time in milliseconds to wait while connecting through http.
|
RendererConfig.Builder |
setHttpReadTimeoutMillis(int httpReadTimeoutMillis)
Sets the http read timeout value, the maximum time to wait for an input stream read through http.
|
RendererConfig.Builder |
setRestrictHdContentToWidevineL1(boolean enable)
Enables or disables a restriction to play 'protected HD content' ONLY on devices with
Widevine security level 1 (L1).
|
public RendererConfig.Builder setHttpReadTimeoutMillis(int httpReadTimeoutMillis)
httpReadTimeoutMillis
- Integer timeout valuepublic RendererConfig.Builder setHttpConnectTimeoutMillis(int httpConnectTimeoutMillis)
httpConnectTimeoutMillis
- Integer timeout valuepublic RendererConfig.Builder setBufferSegmentSize(int bufferSegmentSize)
bufferSegmentSize
- segment size for the buffer.public RendererConfig.Builder setBufferSegmentCount(int bufferSegmentCount)
bufferSegmentCount
- count of buffer segments.public RendererConfig.Builder setRestrictHdContentToWidevineL1(boolean enable)
enable,
- set false to disable restrictionpublic RendererConfig build()