External Media
A video with a media url and optional ad breaks. Ad breaks can either be provided as a list of AdBreak or as a URL to an ad schedule, such as VMAP. See available constructors for more.
Constructors
Link copied to clipboard
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.
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.
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.