Package com.theoplayer.android.api.ads
Interface LinearAd
-
-
Method Summary
Modifier and Type Method Description abstract int
getDuration()
The duration of the LinearAd, as provided by the VAST file, 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, as provided by the VAST file, in seconds.
Default: 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)
-
-
-
-