Package com.brightcove.player.model
Class RendererConfig.Builder
java.lang.Object
com.brightcove.player.model.RendererConfig.Builder
- Enclosing class:
- RendererConfig
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
setBufferSegmentCount
(int bufferSegmentCount) Sets the number of segments to buffer ahead.setBufferSegmentSize
(int bufferSegmentSize) Sets the buffer segment size, the size in bytes for each segment of the buffer.setHttpConnectTimeoutMillis
(int httpConnectTimeoutMillis) Sets the http connect timeout value, the maximum time in milliseconds to wait while connecting through http.setHttpReadTimeoutMillis
(int httpReadTimeoutMillis) Sets the http read timeout value, the maximum time to wait for an input stream read through http.setRestrictHdContentToWidevineL1
(boolean enable) Enables or disables a restriction to play 'protected HD content' ONLY on devices with Widevine security level 1 (L1).
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setHttpReadTimeoutMillis
Sets the http read timeout value, the maximum time to wait for an input stream read through http.- Parameters:
httpReadTimeoutMillis
- Integer timeout value
-
setHttpConnectTimeoutMillis
Sets the http connect timeout value, the maximum time in milliseconds to wait while connecting through http.- Parameters:
httpConnectTimeoutMillis
- Integer timeout value
-
setBufferSegmentSize
Sets the buffer segment size, the size in bytes for each segment of the buffer.- Parameters:
bufferSegmentSize
- segment size for the buffer.
-
setBufferSegmentCount
Sets the number of segments to buffer ahead.- Parameters:
bufferSegmentCount
- count of buffer segments.
-
setRestrictHdContentToWidevineL1
Enables or disables a restriction to play 'protected HD content' ONLY on devices with Widevine security level 1 (L1). The restriction is enabled by default.- Parameters:
enable
- , set false to disable restriction
-
build
-