Interface MediaFile
-
- All Implemented Interfaces:
-
android.os.Parcelable
public interface MediaFile implements Parcelable
Represents a parsed
<MediaFile>element.
-
-
Method Summary
Modifier and Type Method Description abstract DeliverygetDelivery()the protocol of the video file. abstract StringgetType()the MIME type for the file container. abstract IntegergetWidth()the native width of the video file, in pixels. abstract IntegergetHeight()the native height of the video file, in pixels. abstract StringgetCodec()the codec of the video file. abstract StringgetId()an identifier for the media file. abstract IntegergetBitrate()the value specifies the average bitrate for the media file. abstract IntegergetMinBitrate()the minimum bitrate for streaming video or audio file. abstract IntegergetMaxBitrate()the maximum bitrate for streaming video or audio file. abstract BooleangetScalable()the value that indicates whether the media file is meant to scale to larger dimensions. abstract BooleangetMaintainAspectRatio()the value that indicates whether aspect ratio for media file dimensions should be maintained when scaled to new dimensions. abstract StringgetApiFramework()identifies the API needed to execute an interactive media file. abstract IntegergetFileSize()the size of the media file. abstract MediaTypegetMediaType()the type of media file. abstract StringgetUri()the uri to a media file. -
-
Method Detail
-
getDelivery
abstract Delivery getDelivery()
the protocol of the video file.
-
getWidth
abstract Integer getWidth()
the native width of the video file, in pixels. (0 for audio ads).
-
getHeight
abstract Integer getHeight()
the native height of the video file, in pixels. (0 for audio ads).
-
getBitrate
abstract Integer getBitrate()
the value specifies the average bitrate for the media file.
-
getMinBitrate
abstract Integer getMinBitrate()
the minimum bitrate for streaming video or audio file.
-
getMaxBitrate
abstract Integer getMaxBitrate()
the maximum bitrate for streaming video or audio file.
-
getScalable
abstract Boolean getScalable()
the value that indicates whether the media file is meant to scale to larger dimensions.
-
getMaintainAspectRatio
abstract Boolean getMaintainAspectRatio()
the value that indicates whether aspect ratio for media file dimensions should be maintained when scaled to new dimensions.
-
getApiFramework
abstract String getApiFramework()
identifies the API needed to execute an interactive media file.
Note: Deprecated in 4.1 in preparation for VPAID being phased out.
-
getFileSize
abstract Integer getFileSize()
the size of the media file.
-
getMediaType
abstract MediaType getMediaType()
the type of media file.
default value is MediaType.MEDIA_TYPE_2D.
-
-
-
-