-
- All Implemented Interfaces:
public class THEOplayerAdDescription extends AdDescription
Describes an ad break request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classTHEOplayerAdDescription.BuilderThe builder for the THEOplayerAdDescription.
-
Field Summary
Fields Modifier and Type Field Description private final Stringsourcesprivate final StringskipOffsetprivate final StringtimeOffset
-
Constructor Summary
Constructors Constructor Description THEOplayerAdDescription(String sources)Creates a THEOplayerAdDescription. THEOplayerAdDescription(String sources, String skipOffset, String timeOffset)Creates a THEOplayerAdDescription.
-
Method Summary
Modifier and Type Method Description StringgetSources()A source which contains the location of ad resources to be scheduled. StringgetSkipOffset()The offset after which the ad break can be skipped. StringgetTimeOffset()The offset after which the ad break will start. -
-
Constructor Detail
-
THEOplayerAdDescription
THEOplayerAdDescription(String sources)
Creates a THEOplayerAdDescription.- Parameters:
sources- The URI which contains the location of the ad resources to be scheduled.
-
THEOplayerAdDescription
THEOplayerAdDescription(String sources, String skipOffset, String timeOffset)
Creates a THEOplayerAdDescription.- Parameters:
sources- The URI which contains the location of ad resources to be scheduled.skipOffset- The offset after which the ad break can be skipped.timeOffset- The offset after which the ad break will start.
-
-
Method Detail
-
getSources
@NonNull() String getSources()
A source which contains the location of ad resources to be scheduled.
- Only supports VAST and VMAP.
-
getSkipOffset
@Nullable() String getSkipOffset()
The offset after which the ad break can be skipped.
- A timestamp which is not in the playback window will result in the ad break not being started.
- VMAP resources will ignore this value as they contain an internal offset.
- A number for the offset in seconds.
- 'start' for a preroll.
- 'end' for a postroll.
- 'HH:MM:SS.mm' for a timestamp in the playback window.
- A percentage string (XX%) for a proportion of the content duration.
-
getTimeOffset
@Nullable() String getTimeOffset()
The offset after which the ad break will start.
- A timestamp which is not in the playback window will result in the ad break not being started.
- VMAP resources will ignore this value as they contain an internal offset.
- A number for the offset in seconds.
- 'start' for a preroll.
- 'end' for a postroll.
- 'HH:MM:SS.mm' for a timestamp in the playback window.
- A percentage string (XX%) for a proportion of the content duration.
-
-
-
-