ExternalMedia

constructor(mediaUrl: String, drmConfig: DrmConfig? = null, metadata: MediaMetadata? = null, subtitles: ArrayList<Subtitle>? = null, maxVideoBitrate: Int? = null, mimeType: String? = null)

Creates a video with a media URL and no ads. If this media is DRM-protected, then a DrmConfig must be specified.

Parameters

mediaUrl

Media URL to be loaded by the player.

drmConfig

DRM configuration file for this media.

metadata

Media's metadata.

subtitles

List of subtitles to be added to the media.

maxVideoBitrate

Media's maximum allowed video bitrate in bits per second.

mimeType

Media file's MIME type.


constructor(mediaUrl: String, adScheduleUrl: String, drmConfig: DrmConfig? = null, metadata: MediaMetadata? = null, subtitles: ArrayList<Subtitle>? = null, maxVideoBitrate: Int? = null, mimeType: String? = null)

Creates a video with a media URL and an ad schedule URL, such as VMAP. If this media is DRM-protected, then a DrmConfig must be specified.

Parameters

mediaUrl

Media URL to be loaded by the player.

adScheduleUrl

Ad schedule URL to be loaded by the player.

drmConfig

DRM configuration file for this media.

metadata

Media's metadata.

subtitles

List of subtitles to be added to the media.

maxVideoBitrate

Media's maximum allowed video bitrate in bits per second.

mimeType

Media file's MIME type.


constructor(mediaUrl: String, adScheduleWaterfall: ArrayList<AdBreak>, drmConfig: DrmConfig? = null, metadata: MediaMetadata? = null, subtitles: ArrayList<Subtitle>? = null, maxVideoBitrate: Int? = null, mimeType: String? = null)

Creates a video with a media URL and an ad schedule URL, such as VMAP. If this media is DRM-protected, then a DrmConfig must be specified.

Parameters

mediaUrl

Media URL to be loaded by the player.

adScheduleWaterfall

List of ad breaks to be played. It doesn't have to be ordered chronologically.

drmConfig

DRM configuration file for this media.

metadata

Media's metadata.

subtitles

List of subtitles to be added to the media.

maxVideoBitrate

Media's maximum allowed video bitrate in bits per second.

mimeType

Media file's MIME type.