public abstract class AdvertisingBase
extends java.lang.Object
implements com.longtailvideo.jwplayer.utils.Jsonable
Constructor and Description |
---|
AdvertisingBase(AdSource client) |
AdvertisingBase(AdvertisingBase src) |
Modifier and Type | Method and Description |
---|---|
abstract AdvertisingBase |
copy() |
java.lang.String |
getAdMessage() |
AdRules |
getAdRules() |
AdSource |
getClient() |
java.lang.String |
getCueText() |
java.lang.Integer |
getRequestTimeout() |
java.lang.String |
getSkipMessage() |
int |
getSkipOffset()
Returns the current skip offset of the ad
|
java.lang.String |
getSkipText() |
java.lang.Boolean |
getVpaidControls() |
void |
setAdMessage(java.lang.String adMessage)
Sets a customized ad message.
|
void |
setAdRules(AdRules adRules)
Configures Ad Rules that control how frequently ads play back.
|
void |
setClient(AdSource client) |
void |
setCueText(java.lang.String cueText)
Sets the text that appears when a user mouses over a scheduled.
|
void |
setRequestTimeout(java.lang.Integer requestTimeout) |
void |
setSkipMessage(java.lang.String skipMessage)
Sets a customized countdown message.
|
void |
setSkipOffset(int skipOffset)
Sets the amount of time in seconds that you want an ad to be watched before it can be skipped.
|
void |
setSkipText(java.lang.String skipText)
Sets the text of the Skip button.
|
void |
setVpaidControls(java.lang.Boolean vpaidControls)
Enables or disables forcing the display of controls during VPAID ads
|
org.json.JSONObject |
toJson() |
public AdvertisingBase(@NonNull AdSource client)
public AdvertisingBase(AdvertisingBase src)
@NonNull public AdSource getClient()
public void setClient(@NonNull AdSource client)
public java.lang.String getSkipText()
public void setSkipText(java.lang.String skipText) throws AdvertisingException
Not supported with Google IMA.
AdvertisingException
- thrown when a Skip message is added to an IMA adpublic java.lang.String getSkipMessage()
public void setSkipMessage(java.lang.String skipMessage) throws AdvertisingException
Not supported with Google IMA.
AdvertisingException
public int getSkipOffset()
public void setSkipOffset(int skipOffset) throws AdvertisingException
Not supported with Google IMA.
skipOffset
- the amount of time in seconds that you want the ad to be watched.AdvertisingException
public java.lang.String getAdMessage()
public void setAdMessage(java.lang.String adMessage) throws AdvertisingException
Not supported with Google IMA.
AdvertisingException
public java.lang.String getCueText()
public void setCueText(java.lang.String cueText) throws AdvertisingException
Not supported with Google IMA.
cueText
- the text to display.AdvertisingException
public void setVpaidControls(java.lang.Boolean vpaidControls)
vpaidControls
- @Nullable public java.lang.Boolean getVpaidControls()
public void setRequestTimeout(java.lang.Integer requestTimeout)
public java.lang.Integer getRequestTimeout()
public void setAdRules(AdRules adRules)
adRules
- public AdRules getAdRules()
public abstract AdvertisingBase copy()
public org.json.JSONObject toJson()
toJson
in interface com.longtailvideo.jwplayer.utils.Jsonable