Class AdRules
java.lang.Object
com.jwplayer.pub.api.configuration.ads.AdRules
- All Implemented Interfaces:
android.os.Parcelable
Ad Rules - Options that control how frequently ads play back.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic @interface -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final android.os.Parcelable.Creator<AdRules>static final Stringstatic final StringStartOnSeek StringDef ValuesFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Method Summary
-
Field Details
-
RULES_START_ON_SEEK_PRE
StartOnSeek StringDef Values- See Also:
-
RULES_START_ON_SEEK_NONE
- See Also:
-
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()- Specified by:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags) - Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-