Class RendererConfig.Builder

  • Enclosing class:

    public static final class RendererConfig.Builder
    extends java.lang.Object
    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • setHttpReadTimeoutMillis

        public RendererConfig.Builder setHttpReadTimeoutMillis​(int httpReadTimeoutMillis)
        Sets the http read timeout value, the maximum time to wait for an input stream read through http.
        httpReadTimeoutMillis - Integer timeout value
      • setHttpConnectTimeoutMillis

        public RendererConfig.Builder setHttpConnectTimeoutMillis​(int httpConnectTimeoutMillis)
        Sets the http connect timeout value, the maximum time in milliseconds to wait while connecting through http.
        httpConnectTimeoutMillis - Integer timeout value
      • setBufferSegmentSize

        public RendererConfig.Builder setBufferSegmentSize​(int bufferSegmentSize)
        Sets the buffer segment size, the size in bytes for each segment of the buffer.
        bufferSegmentSize - segment size for the buffer.
      • setBufferSegmentCount

        public RendererConfig.Builder setBufferSegmentCount​(int bufferSegmentCount)
        Sets the number of segments to buffer ahead.
        bufferSegmentCount - count of buffer segments.
      • setRestrictHdContentToWidevineL1

        public RendererConfig.Builder setRestrictHdContentToWidevineL1​(boolean enable)
        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.
        enable - , set false to disable restriction