Class MetadataConfiguration.Builder

java.lang.Object
com.castlabs.android.player.MetadataConfiguration.Builder
Enclosing class:
MetadataConfiguration

public static final class MetadataConfiguration.Builder extends Object
MetadataConfiguration builder static inner class.
  • Constructor Details

  • Method Details

    • outputMetadataEarly

      @NonNull public MetadataConfiguration.Builder outputMetadataEarly(boolean outputMetadataEarly)
      Sets whether metadata is output immediately after it is decoded instead of at its presentation time.
      Parameters:
      outputMetadataEarly - Whether metadata is output immediately after it is decoded.
      Returns:
      This builder.
    • endOfStreamMetadataThresholdUs

      @NonNull public MetadataConfiguration.Builder endOfStreamMetadataThresholdUs(long endOfStreamMetadataThresholdUs)
      Sets the end-of-stream metadata threshold, in microseconds.

      Pending metadata whose presentation time is beyond the period duration is discarded after playback has reached the end of the period plus the specified threshold.

      Use 0 to discard such metadata immediately at the end of the period, or MetadataConfiguration.DISABLE_END_OF_STREAM_METADATA_THRESHOLD_US to disable this behavior.

      Parameters:
      endOfStreamMetadataThresholdUs - The end-of-stream metadata threshold, in microseconds.
      Returns:
      This builder.
    • get

      @NonNull public MetadataConfiguration get()
      Returns a MetadataConfiguration built from the parameters previously set.
      Returns:
      a MetadataConfiguration built with parameters of this MetadataConfiguration.Builder