-
- All Implemented Interfaces:
-
com.theoplayer.android.api.event.EventDispatcher
public interface VerizonMediaAdBreak implements EventDispatcher<VerizonMediaAdBreakEvent>
The Verizon Media ad break API.
-
-
Method Summary
Modifier and Type Method Description abstract doublegetStartTime()The start time of the ad break, in seconds. abstract DoublegetEndTime()The end time of the ad break, in seconds. abstract DoublegetDuration()The duration of the ad break, in seconds. abstract VerizonMediaAdListgetAds()The VerizonMediaAdList of ads in this ad break. abstract doublegetSkipOffset()The offset after which the ad break may be skipped, in seconds. abstract voidsetSkipOffset(double skipOffset)Sets the offset after which the ad break may be skipped, in seconds. -
-
Method Detail
-
getStartTime
abstract double getStartTime()
The start time of the ad break, in seconds.
-
getEndTime
@Nullable() abstract Double getEndTime()
The end time of the ad break, in seconds. (Nullable)
- For channels it can return 'null' when the end time has not yet been signaled.
-
getDuration
@Nullable() abstract Double getDuration()
The duration of the ad break, in seconds. (Nullable)
- For channels it can return 'null' when the duration has not yet been signaled.
-
getAds
@Nullable() abstract VerizonMediaAdList getAds()
The VerizonMediaAdList of ads in this ad break.
-
getSkipOffset
abstract double getSkipOffset()
The offset after which the ad break may be skipped, in seconds.
- If the offset is -1, the ad is unskippable.
- If the offset is 0, the ad is immediately skippable.
- Otherwise it must be a positive (rational) number indicating the offset.
Default: -1, getDefaultSkipOffset
-
setSkipOffset
abstract void setSkipOffset(double skipOffset)
Sets the offset after which the ad break may be skipped, in seconds.
- If the offset is -1, the ad is unskippable.
- If the offset is 0, the ad is immediately skippable.
- Otherwise it must be a positive (rational) number indicating the offset.
- Parameters:
skipOffset- the offset after which the ad break may be skipped, in seconds.
-
-
-
-