Class LoadControlConfig

java.lang.Object
com.brightcove.player.config.LoadControlConfig

public class LoadControlConfig extends Object
Config class used when creating a LoadControl instance.
  • Method Details

    • getMinBufferMs

      public int getMinBufferMs()
      Gets the minimum duration of media that the player will attempt to ensure is buffered at all times, in milliseconds.
      Returns:
      the min buffer in milliseconds
      See Also:
      • DefaultLoadControl
    • getMaxBufferMs

      public int getMaxBufferMs()
      Gets the maximum duration of media that the player will attempt buffer, in milliseconds.
      Returns:
      the max buffer in milliseconds
      See Also:
      • DefaultLoadControl
    • getBufferForPlaybackMs

      public int getBufferForPlaybackMs()
      Gets the duration of media that must be buffered for playback to start or resume following a user action such as a seek, in milliseconds.
      Returns:
      the buffer for playback in milliseconds
      See Also:
      • DefaultLoadControl
    • getBufferForPlaybackAfterRebufferMs

      public int getBufferForPlaybackAfterRebufferMs()
      Gets the default duration of media that must be buffered for playback to resume after a rebuffer, in milliseconds. A rebuffer is defined to be caused by buffer depletion rather than a user action.
      Returns:
      the buffer for playback after rebuffer in milliseconds
      See Also:
      • DefaultLoadControl
    • getTargetBufferBytes

      public int getTargetBufferBytes()
      Gets the target buffer size in bytes.
      Returns:
      the target buffer bytes
      See Also:
      • DefaultLoadControl
    • isPrioritizeTimeOverSizeThresholds

      public boolean isPrioritizeTimeOverSizeThresholds()
      Gets whether the load control prioritizes buffer time constraints over buffer size constraints.
      See Also:
      • DefaultLoadControl
    • getAllocatorConfig

      @NonNull public AllocatorConfig getAllocatorConfig()
      Gets the AllocatorConfig object.
      Returns:
      the allocator config