Class RelatedConfig.Builder

java.lang.Object
com.jwplayer.pub.api.configuration.RelatedConfig.Builder
Enclosing class:
RelatedConfig

public static class RelatedConfig.Builder extends Object
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • file

      public RelatedConfig.Builder file(String file)
      Parameters:
      file - (Required) Location of an RSS or JSON file containing a feed of related videos.
    • onComplete

      public RelatedConfig.Builder onComplete(String onComplete)
      Parameters:
      onComplete - The behavior of our related videos overlay when a single video or playlist is completed. Must be one of the RELATED_DISPLAY_ON_COMPLETE_ constants.
    • onClick

      public RelatedConfig.Builder onClick(String onClick)
      Parameters:
      onClick - The behavior when a related video is selected. Must be one of the RELATED_DISPLAY_ON_CLICK_ constants.
    • autoPlayTimer

      public RelatedConfig.Builder autoPlayTimer(Integer timer)
      Parameters:
      timer - The number of seconds to wait before playing the next related video in your content list. Set to 0 to have your next related content to play immediately.
    • autoPlayMessage

      @Deprecated public RelatedConfig.Builder autoPlayMessage(String message)
      Deprecated.
      This API has been deprecated, override the key jwplayer_next_up_countdown in strings.xml to customize this message.
      Parameters:
      message - A custom message that appears during autoplay.
    • build

      public RelatedConfig build()