Class ImaBreakScheduler
java.lang.Object
com.appscend.media.events.ImaBreakScheduler
Prepares at most one IMA break ahead of its cue and hands it to its trigger; main thread only.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard(APSVastAdBreak source) voidvoidhandOver(APSVastAdBreak source, APSImaAdBreak.ContentHold hold) Main thread: the next trigger ofsourceinherits a finishing midroll's paused content.voidprepare(APSVastAdBreak source) From any thread: request the break's ads ahead of its cue once no other break is preparing.voidtake(APSVastAdBreak source) The prepared break forsource, else a cold one; it carries a pending handover's content state.voidDrops the prepared and waiting midrolls of a unit that finished.
-
Constructor Details
-
ImaBreakScheduler
public ImaBreakScheduler()
-
-
Method Details
-
prepare
From any thread: request the break's ads ahead of its cue once no other break is preparing. -
take
The prepared break forsource, else a cold one; it carries a pending handover's content state. -
handOver
Main thread: the next trigger ofsourceinherits a finishing midroll's paused content. -
discard
-
unitFinished
public void unitFinished()Drops the prepared and waiting midrolls of a unit that finished. -
releaseAll
public void releaseAll() -
finished
-