Package com.brightcove.player.model
Class Video.Builder
java.lang.Object
com.brightcove.player.model.Video.Builder
- Enclosing class:
- Video
Convenience Builder to build Video objects.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds theVideo
object.setDeliveryType
(DeliveryType deliveryType) Sets the Video Delivery Type.setIsLiveVideo
(boolean isLiveVideo) Indicates whether this video is Live or not.setProjectionFormat
(Video.ProjectionFormat projectionFormat) Sets the Video Projection Format.
-
Constructor Details
-
Builder
The Video.Builder- Parameters:
uri
- the String URI to the video
-
-
Method Details
-
setDeliveryType
Sets the Video Delivery Type.- Parameters:
deliveryType
- the delivery type- Returns:
- this builder
-
setProjectionFormat
Sets the Video Projection Format.- Parameters:
projectionFormat
- the projection format- Returns:
- this builder
-
setIsLiveVideo
Indicates whether this video is Live or not. This will help to configure the video with its right attributes.Once the video is loaded in the player, it is recommended to use
VideoDisplayComponent.isLive()
andVideoDisplayComponent.hasDvr()
to determine that a Video is live and has DVR capabilities, respectively.- Parameters:
isLiveVideo
- true to indicate the video is Live- Returns:
- this builder
-
build
Builds theVideo
object.- Returns:
- the video
-