|
|||||||||
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.
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 |
getReplaceDuration()
Returns the ad break replace duration. |
String |
getTag()
|
long |
getTime()
Returns the starting time for this ad break. |
boolean |
isValid()
|
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 long size()
public Iterator<Ad> adsIterator()
public long getTime()
getTime
in interface TimelineMarker
public long getReplaceDuration()
public long getInitialReplaceDuration()
public long getDuration()
getDuration
in interface TimelineMarker
public boolean isValid()
public String getTag()
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 |