Class MediaFile

com.yandex.mobile.ads.video.models.ad

java.lang.Object ⇽ MediaFile

public class MediaFile

This class contains information about the MediaFile object (ad encoding, delivery method, and other parameters).

Nested Classes

Methods

int describeContents()
boolean equals(final Object o)
int getBitrate()

Returns the bitrate for the encoded video in kbps.

DeliveryMethod getDeliveryMethod()

Returns the method for video ad delivery.

int getHeight()

Returns the height of the video in pixels.

String getId()

Returns the ID of the media file.

String getMimeType()

Returns the MIME type of the video.

String getUri()

Returns the URI of the media file.

int getWidth()

Returns the width of the video in pixels.

int hashCode()
void setMimeType(final String mimeType)

Sets the MIME type of the video.

void writeToParcel(final Parcel dest, final int flags)

Fields

final Creator< MediaFile > CREATOR

Method Detail

describeContents

public int describeContents ()

equals

public boolean equals (final Object o)

getBitrate

public int getBitrate ()

Returns the bitrate for the encoded video in kbps.

Returns:

Bitrate for the encoded video in kbps.

getDeliveryMethod

public DeliveryMethod getDeliveryMethod ()

Returns the method for video ad delivery.

Returns:

Method for delivering video ads.

getHeight

public int getHeight ()

Returns the height of the video in pixels.

Returns:

Height of the video in pixels.

getId

public String getId ()

Returns the ID of the media file.

Returns:

ID of the media file.

getMimeType

public String getMimeType ()

Returns the MIME type of the video.

Returns:

MIME type of the video.

getUri

public String getUri ()

Returns the URI of the media file.

Returns:

Media file URI.

getWidth

public int getWidth ()

Returns the width of the video in pixels.

Returns:

Width of the video in pixels.

hashCode

public int hashCode ()

setMimeType

public void setMimeType (final String mimeType)

Sets the MIME type of the video.

Parameters:
mimeType

MIME type of the video.

writeToParcel

public void writeToParcel (final Parcel dest, final int flags)

Field Detail

CREATOR

public static CREATOR = new Creator<MediaFile>() { public MediaFile createFromParcel(final Parcel source) { return new MediaFile(source); } public MediaFile[] newArray(final int size) { return new MediaFile[size]; } }