Class POBMediaFile
-
- All Implemented Interfaces:
-
com.pubmatic.sdk.video.xmlserialiser.POBXMLNodeListener
public class POBMediaFile implements POBXMLNodeListener
Class represents a single Media file in VAST.
-
-
Constructor Summary
Constructors Constructor Description POBMediaFile()
-
Method Summary
Modifier and Type Method Description voidbuild(@NonNull() POBNodeBuilder builder)POBXMLParser calls this method to build model class object with node builder StringgetDelivery()Either "progressive" for progressive download protocols (such as HTTP) or "streaming" for streaming protocols. StringgetType()MIME type for the file container. intgetBitrate()Specifies the average bitrate for the media file intgetWidth()The native width of the video file, in pixels. intgetHeight()The native height of the video file, in pixels. booleangetScalable()A Boolean value that indicates whether the media file is meant to scale to larger dimensions. booleangetMaintainAspectRatio()A Boolean value that indicates whether aspect ratio for media file dimensions should be maintained when scaled to new dimensions. StringgetMediaFileURL()Media file url StringgetFileSize()Optional field that helps eliminate the need to calculate the size based on bitrate and duration Units - Bytes StringtoString()-
-
Method Detail
-
build
void build(@NonNull() POBNodeBuilder builder)
POBXMLParser calls this method to build model class object with node builder
- Parameters:
builder- Instance of POBNodeBuilder, to be used for building the model class object
-
getDelivery
@Nullable() String getDelivery()
Either "progressive" for progressive download protocols (such as HTTP) or "streaming" for streaming protocols.
- Returns:
delivery type
-
getType
@Nullable() String getType()
MIME type for the file container.
Popular MIME types include, but are not limited to "video/mp4" for MP4, "audio/mpeg" and "audio/aac" for audio ads.
- Returns:
MIME type
-
getBitrate
int getBitrate()
Specifies the average bitrate for the media file
- Returns:
average bitrate for the media file
-
getWidth
int getWidth()
The native width of the video file, in pixels. (0 for audio ads)
- Returns:
width of video file
-
getHeight
int getHeight()
The native height of the video file, in pixels. (0 for audio ads)
- Returns:
height of video file
-
getScalable
boolean getScalable()
A Boolean value that indicates whether the media file is meant to scale to larger dimensions.
- Returns:
scalable boolean value
-
getMaintainAspectRatio
boolean getMaintainAspectRatio()
A Boolean value that indicates whether aspect ratio for media file dimensions should be maintained when scaled to new dimensions.
- Returns:
maintainAspectRatio boolean value
-
getMediaFileURL
@Nullable() String getMediaFileURL()
Media file url
- Returns:
file url
-
getFileSize
@Nullable() String getFileSize()
Optional field that helps eliminate the need to calculate the size based on bitrate and duration Units - Bytes
- Returns:
file size
-
-
-
-