Package com.ooyala.pulse
Interface PulseAdBreak
-
public interface PulseAdBreakThis is the interface for ad breaks owned by aPulseSession. An ad break is a collection of ads that are to be displayed in sequence. This interface is used to request information regarding the ad break, or to forcefully stop the ad break.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RequestSettings.AdBreakTypegetAdBreakType()Get the position type of the ad break within the video content.intgetPlayableAdsRemaining()Get the number of playable ads remaining in this ad break.intgetPlayableAdsTotal()Get the total number of playable ads in this ad break.voidstopAdBreak()Forcefully stop the ad break.
-
-
-
Method Detail
-
getPlayableAdsRemaining
int getPlayableAdsRemaining()
Get the number of playable ads remaining in this ad break.- Returns:
- The number of ads remaining.
-
getPlayableAdsTotal
int getPlayableAdsTotal()
Get the total number of playable ads in this ad break.- Returns:
- The total number of playable ads.
-
stopAdBreak
void stopAdBreak()
Forcefully stop the ad break. This may be called at any time while the ad break is active.After the ad break is stopped the session continues with
PulseSessionListener.startContentPlayback(), orPulseSessionListener.sessionEnded()if the content has already finished.
-
getAdBreakType
RequestSettings.AdBreakType getAdBreakType()
Get the position type of the ad break within the video content.- Returns:
RequestSettings.AdBreakTypeThe position of the ad break.
-
-