Class RendererConfig.Builder

java.lang.Object
com.brightcove.player.model.RendererConfig.Builder
Enclosing class:
RendererConfig

public static final class RendererConfig.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • 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.
      Parameters:
      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.
      Parameters:
      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.
      Parameters:
      bufferSegmentSize - segment size for the buffer.
    • setBufferSegmentCount

      public RendererConfig.Builder setBufferSegmentCount(int bufferSegmentCount)
      Sets the number of segments to buffer ahead.
      Parameters:
      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.
      Parameters:
      enable - , set false to disable restriction
    • build

      public RendererConfig build()