java.lang.Object
com.jwplayer.pub.api.configuration.ads.AdRules
All Implemented Interfaces:
android.os.Parcelable

public class AdRules extends Object implements android.os.Parcelable
Ad Rules - Options that control how frequently ads play back.
  • Field Details

    • RULES_START_ON_SEEK_PRE

      public static final String RULES_START_ON_SEEK_PRE
      StartOnSeek StringDef Values
      See Also:
    • RULES_START_ON_SEEK_NONE

      public static final String RULES_START_ON_SEEK_NONE
      See Also:
    • CREATOR

      public static final android.os.Parcelable.Creator<AdRules> CREATOR
  • Method Details

    • getStartOn

      public Integer getStartOn()
      Returns:
      The first playlist item that will allow ad playback, index starting at 1.
    • getFrequency

      public Integer 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

      public Integer getTimeBetweenAds()
      Returns:
      Minimum time in seconds between ads
    • getStartOnSeek

      public String getStartOnSeek()
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable