Package com.theoplayer.android.api.ads
Interface MediaFile
-
- All Implemented Interfaces:
public interface MediaFileThe MediaFile API represents metadata of an media file with ad content.
This metadata is retrieved from the VAST file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classMediaFile.BuilderThe builder for MediaFile.
-
Method Summary
Modifier and Type Method Description abstract StringgetDelivery()The delivery type. abstract StringgetResourceURI()The URI of the VAST content. abstract StringgetType()The MIME type for the file container. abstract IntegergetHeight()The native height of the video file, in pixels. abstract IntegergetWidth()The native width of the video file, in pixels. -
-
Method Detail
-
getDelivery
abstract String getDelivery()
The delivery type.
Currently we only support progressive.
It should be either 'progressive' or 'streaming'.
Default: Empty string.
- Returns:
The delivery type. (NonNull)
-
getResourceURI
abstract String getResourceURI()
The URI of the VAST content.
Default: Empty string.
- Returns:
The URI of the VAST content. (NonNull)
-
getType
abstract String getType()
The MIME type for the file container.
Default: Empty string.
- Returns:
The MIME type. (NonNull)
-
getHeight
abstract Integer getHeight()
The native height of the video file, in pixels.
- Returns:
The video file native height, in pixels.
-
-
-
-