Class DebugPlugin.Builder

java.lang.Object
com.castlabs.sdk.debug.DebugPlugin.Builder
Enclosing class:
DebugPlugin

public static class DebugPlugin.Builder extends Object
Use this builder to create new instances of the DebugPlugin.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • logAll

      @NonNull public DebugPlugin.Builder logAll(boolean value)
      Enable or disable all debug logging
      Parameters:
      value - The value
      Returns:
      The builder
    • logOpenBundle

      @NonNull public DebugPlugin.Builder logOpenBundle(boolean value)
      If enabled, Bundle key values pairs passed to PlayerController.open(Bundle) will be logged.
      Parameters:
      value - enable or disable
      Returns:
      The builder
    • logDownloadStarted

      @NonNull public DebugPlugin.Builder logDownloadStarted(boolean value)
    • logDownloadCompleted

      @NonNull public DebugPlugin.Builder logDownloadCompleted(boolean value)
    • logDownloadCanceled

      @NonNull public DebugPlugin.Builder logDownloadCanceled(boolean value)
    • logDownloadUpstreamDiscarded

      public DebugPlugin.Builder logDownloadUpstreamDiscarded(boolean value)
    • logVideoRendererEvents

      @NonNull public DebugPlugin.Builder logVideoRendererEvents(boolean value)
    • logAudioRendererEvents

      @NonNull public DebugPlugin.Builder logAudioRendererEvents(boolean value)
    • logDecoderCounters

      @NonNull public DebugPlugin.Builder logDecoderCounters(boolean value)
    • debugOverlay

      @NonNull public DebugPlugin.Builder debugOverlay(boolean value)
    • debugOverlayPosition

      public DebugPlugin.Builder debugOverlayPosition(DebugPlugin.DebugOverlayPosition value)
    • logDownloadError

      @NonNull public DebugPlugin.Builder logDownloadError(boolean value)
    • logSupportedDrm

      public DebugPlugin.Builder logSupportedDrm(boolean value)
    • logLoadControl

      @NonNull public DebugPlugin.Builder logLoadControl(boolean value)
    • logTimingDebugInfo

      @NonNull public DebugPlugin.Builder logTimingDebugInfo(boolean value)
    • logRequestType

      @NonNull public DebugPlugin.Builder logRequestType(int type)
    • logResponseType

      @NonNull public DebugPlugin.Builder logResponseType(int type)
    • enableRateLimiter

      @NonNull public DebugPlugin.Builder enableRateLimiter(boolean value, long initialLimitBps)
      Enabled or disable rate limiting and set the initial rate limit. A value < 0 will disable rate limiting.
      Parameters:
      value - Enable or disable the rate limiter
      initialLimitBps - The initial rate limit
      Returns:
      The builder
    • logVideoFrameMetadata

      @NonNull public DebugPlugin.Builder logVideoFrameMetadata(boolean value, long logAVSyncThresholdUs, long logMeanAndDeviationPeriodUs)
      Enable or disable the AV sync measurements. Setup a threshold when to log AV sync values, per frame. Setup a period to log AV sync calculated mean and deviation values.
      Parameters:
      value - Enable or disable the measurements
      logAVSyncThresholdUs - AV sync threshold in us, exceeding which will result in logging PTS and calculated AV sync values per frame
      logMeanAndDeviationPeriodUs - Period in us, how frequent to log AV sync mean and deviation values
      Returns:
      The builder
    • logTransferInfo

      @NonNull public DebugPlugin.Builder logTransferInfo(boolean logTransferInfo)
      Enables detailed logging for network transfer events. Note that this provoke a lot of logging.
      Parameters:
      logTransferInfo - Enable or disable transfer info logging.
      Returns:
      The builder
    • logPeriodInfo

      @NonNull public DebugPlugin.Builder logPeriodInfo(boolean logPeriodInfo)
      Enables logging for period change events.
      Parameters:
      logPeriodInfo - Enable or disable logging.
      Returns:
      The builder
    • get

      @NonNull public DebugPlugin get()
      Create an instance of the debug plugin from this builder.
      Returns:
      The debug plugin instance