Class RelatedConfig.Builder
- java.lang.Object
-
- com.jwplayer.pub.api.configuration.RelatedConfig.Builder
-
- Enclosing class:
- RelatedConfig
public static class RelatedConfig.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description RelatedConfig.Builder
autoPlayMessage(java.lang.String message)
Deprecated.This API has been deprecated, override the key jwplayer_next_up_countdown in strings.xml to customize this message.RelatedConfig.Builder
autoPlayTimer(java.lang.Integer timer)
RelatedConfig
build()
RelatedConfig.Builder
file(java.lang.String file)
RelatedConfig.Builder
onClick(java.lang.String onClick)
RelatedConfig.Builder
onComplete(java.lang.String onComplete)
-
-
-
Method Detail
-
file
public RelatedConfig.Builder file(java.lang.String file)
- Parameters:
file
- (Required) Location of an RSS or JSON file containing a feed of related videos.
-
onComplete
public RelatedConfig.Builder onComplete(java.lang.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(java.lang.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(java.lang.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(java.lang.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()
-
-