Class AdRules
java.lang.Object
com.jwplayer.pub.api.configuration.ads.AdRules
Ad Rules - Options that control how frequently ads play back.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static @interface
-
Field Summary
Fields -
Method Summary
-
Field Details
-
RULES_START_ON_SEEK_PRE
StartOnSeek StringDef Values- See Also:
-
RULES_START_ON_SEEK_NONE
- See Also:
-
CREATOR
public static final <any> CREATOR
-
-
Method Details
-
getStartOn
- Returns:
- The first playlist item that will allow ad playback, index starting at 1.
-
getFrequency
- Returns:
- Play ads only on every X playlist item. i.e. frequency 3 means only play on ads on every third playlist item. Use 0 to only play ads on the first playlist item.
-
getTimeBetweenAds
- Returns:
- Minimum time in seconds between ads
-
getStartOnSeek
-
describeContents
public int describeContents() -
writeToParcel
public void writeToParcel(Parcel dest, int flags)
-