public class ExternalVideo implements Video
A video with a media url and optional ad breaks.
Ad breaks can either be provided as a list of class AdBreak
or as a url to an ad schedule, such as VMAP.
See available constructors for more.
class AdBreak
Constructor and Description |
---|
ExternalVideo(java.lang.String mediaUrl)
Creates a video with a media url and no ads.
|
ExternalVideo(java.lang.String mediaUrl,
java.lang.String adScheduleUrl)
Creates a video with a media url and an ad schedule url, such as VMAP.
|
ExternalVideo(java.lang.String mediaUrl,
java.util.ArrayList<com.flowplayer.android.player.media.ad.AdBreak> adScheduleWaterfall)
Creates a video with a media url and an ad schedule url, such as VMAP.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAdScheduleUrl()
The ad schedule url to be loaded by the player.
|
java.util.ArrayList<com.flowplayer.android.player.media.ad.AdBreak> |
getAdScheduleWaterfall()
A list of ad breaks to be played. It does not have to be ordered chronologically.
|
java.lang.String |
getMediaUrl()
The media url to be loaded by the player.
|
public ExternalVideo(@NotNull java.lang.String mediaUrl)
Creates a video with a media url and no ads.
mediaUrl
- The media url to be loaded by the player.public ExternalVideo(@NotNull java.lang.String mediaUrl, @NotNull java.lang.String adScheduleUrl)
Creates a video with a media url and an ad schedule url, such as VMAP.
mediaUrl
- The media url to be loaded by the player.adScheduleUrl
- The ad schedule url to be loaded by the player.public ExternalVideo(@NotNull java.lang.String mediaUrl, @NotNull java.util.ArrayList<com.flowplayer.android.player.media.ad.AdBreak> adScheduleWaterfall)
Creates a video with a media url and an ad schedule url, such as VMAP.
mediaUrl
- The media url to be loaded by the player.adScheduleWaterfall
- A list of ad breaks to be played. It does not have to be ordered chronologically.@NotNull public java.lang.String getMediaUrl()
The media url to be loaded by the player.
@Nullable public java.lang.String getAdScheduleUrl()
The ad schedule url to be loaded by the player.
@Nullable public java.util.ArrayList<com.flowplayer.android.player.media.ad.AdBreak> getAdScheduleWaterfall()
A list of ad breaks to be played. It does not have to be ordered chronologically.