Package com.castlabs.sdk.debug
Class DebugPlugin.Builder
java.lang.Object
com.castlabs.sdk.debug.DebugPlugin.Builder
- Enclosing class:
DebugPlugin
Use this builder to create new instances of the
DebugPlugin
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondebugOverlay
(boolean value) enableRateLimiter
(boolean value, long initialLimitBps) Enabled or disable rate limiting and set the initial rate limit.get()
Create an instance of the debug plugin from this builder.logAll
(boolean value) Enable or disable all debug logginglogAudioRendererEvents
(boolean value) logDecoderCounters
(boolean value) logDownloadCanceled
(boolean value) logDownloadCompleted
(boolean value) logDownloadError
(boolean value) logDownloadStarted
(boolean value) logDownloadUpstreamDiscarded
(boolean value) logLoadControl
(boolean value) logOpenBundle
(boolean value) If enabled, Bundle key values pairs passed toPlayerController.open(Bundle)
will be logged.logPeriodInfo
(boolean logPeriodInfo) Enables logging for period change events.logRequestType
(int type) logResponseType
(int type) logSupportedDrm
(boolean value) logTimingDebugInfo
(boolean value) logTransferInfo
(boolean logTransferInfo) Enables detailed logging for network transfer events.logVideoRendererEvents
(boolean value)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
logAll
Enable or disable all debug logging- Parameters:
value
- The value- Returns:
- The builder
-
logOpenBundle
If enabled, Bundle key values pairs passed toPlayerController.open(Bundle)
will be logged.- Parameters:
value
- enable or disable- Returns:
- The builder
-
logDownloadStarted
-
logDownloadCompleted
-
logDownloadCanceled
-
logDownloadUpstreamDiscarded
-
logVideoRendererEvents
-
logAudioRendererEvents
-
logDecoderCounters
-
debugOverlay
-
debugOverlayPosition
-
logDownloadError
-
logSupportedDrm
-
logLoadControl
-
logTimingDebugInfo
-
logRequestType
-
logResponseType
-
enableRateLimiter
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 limiterinitialLimitBps
- The initial rate limit- Returns:
- The builder
-
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
Enables logging for period change events.- Parameters:
logPeriodInfo
- Enable or disable logging.- Returns:
- The builder
-
get
Create an instance of the debug plugin from this builder.- Returns:
- The debug plugin instance
-