Interface LinearAd

  • All Implemented Interfaces:
    com.theoplayer.android.api.ads.Ad

    
    public interface LinearAd
     implements Ad
                        

    The LinearAd API which represents a linear ad in the VAST specification.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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, getId, getIntegration, getSkipOffset, getType
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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)