|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.adobe.mediacore.timeline.advertising.AdBreak
public final class AdBreak
An ad break provides a unified view on several ads that will be played at some point in time, during playback. The ad break has a starting time and a duration, which is a sum of all the ads that it contains.
| Nested Class Summary | |
|---|---|
static class |
AdBreak.Type
|
| Method Summary | |
|---|---|
Iterator<Ad> |
adsIterator()
Returns an iterator which can be used to iterate through the ads. |
AdBreak |
cloneFor(PlacementInformation placementInformation)
|
int |
compareTo(AdBreak adBreak)
|
static AdBreak |
createAdBreak(List<Ad> ads,
long time,
long replaceDuration,
String tag)
Factory method: Creates a new ad break. |
Ad |
getAdForContentId(int contentId)
|
long |
getDuration()
Returns the total ad break duration. |
Ad |
getFirstAd()
|
long |
getInitialReplaceDuration()
|
Ad |
getLastAd()
|
long |
getLocalTime()
Returns the local start time for this ad break. |
long |
getReplaceDuration()
Returns the ad break replace duration. |
String |
getRestoreId()
Returns the ad break restore id. |
String |
getTag()
|
long |
getTime()
Returns the starting time for this ad break. |
AdBreak.Type |
getType()
Returns the type for this Ad Break. |
boolean |
isValid()
|
Boolean |
isWatched()
Returns flag which indicates if this ad break has been watched. |
void |
setIsWatched(Boolean isWatched)
Sets a flag which indicates if this ad break has been watched. |
void |
setLocalTime(long localTime)
Set the local start time for this ad break. |
void |
setRestoreId(String restoreId)
Set the ad break restore id. |
void |
setType(AdBreak.Type type)
Set the type for this ad break. |
long |
size()
|
String |
toString()
Returns a String representation of the current ad break. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static AdBreak createAdBreak(List<Ad> ads,
long time,
long replaceDuration,
String tag)
ads - The ads that this ad break will contain.time - The starting time for this ad break.replaceDuration - If 0, the AdBreak content will be inserted (inflating the timeline).
If greater than 0, the AdBreak content will replace the main content
for the specified duration (timeline remains constant)tag - An arbitrary string value that can be attached to the AdBreak object.
public Boolean isWatched()
public void setIsWatched(Boolean isWatched)
public long size()
public void setType(AdBreak.Type type)
public AdBreak.Type getType()
public void setLocalTime(long localTime)
public long getLocalTime()
public Iterator<Ad> adsIterator()
public long getTime()
getTime in interface TimelineMarkerpublic long getReplaceDuration()
public long getInitialReplaceDuration()
public long getDuration()
getDuration in interface TimelineMarkerpublic boolean isValid()
public String getTag()
public String getRestoreId()
public void setRestoreId(String restoreId)
public int compareTo(AdBreak adBreak)
compareTo in interface Comparable<AdBreak>public Ad getAdForContentId(int contentId)
public Ad getFirstAd()
public Ad getLastAd()
public AdBreak cloneFor(PlacementInformation placementInformation)
public String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||