AdMediaInfo

public class AdMediaInfo


The minimal information required to play an ad. Note that multiple AdMediaInfo objects may resolve to the same content, but refer to different ads. Thus when comparing AdMediaInfo objects one should use the identity equality check, as opposed to comparing their URLs.

Summary

Public fields

final String

Public methods

@Nullable String

Returns the audio MIME type of the ad media.

String

Returns the URL of the ad media.

@Nullable String

Returns the video MIME type of the ad media.

Public fields

url

public final String url

Public methods

getAudioMimeType

public @Nullable String getAudioMimeType()

Returns the audio MIME type of the ad media.

getUrl

public String getUrl()

Returns the URL of the ad media.

getVideoMimeType

public @Nullable String getVideoMimeType()

Returns the video MIME type of the ad media.