Package com.theoplayer.android.api.ads
Interface LinearAd
-
-
Method Summary
Modifier and Type Method Description abstract intgetDuration()The duration of the LinearAd in seconds. abstract doublegetDurationAsDouble()The duration of the LinearAd in seconds. abstract List<MediaFile>getMediaFiles()The list of media files which contain metadata about ad video files. -
Methods inherited from class com.theoplayer.android.api.ads.Ad
getAdBreak, getCompanions, getCustomData, getCustomIntegration, getId, getIntegration, getSkipOffset, getType -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getDuration
abstract int getDuration()
The duration of the LinearAd in seconds.
Default: 0
For sub-second precision, use getDurationAsDouble.
- Returns:
The duration of the LinearAd, in seconds.
-
getDurationAsDouble
abstract double getDurationAsDouble()
The duration of the LinearAd in seconds.
Default: 0.0
- Returns:
The duration of the LinearAd, in seconds.
-
getMediaFiles
@NonNull() abstract List<MediaFile> getMediaFiles()
The list of media files which contain metadata about ad video files.
- Returns:
List of media files. (NonNull)
-
-
-
-