-
public class Video.Builder
Convenience Builder to build Video objects.
-
-
Field Summary
Fields Modifier and Type Field Description private Video.ProjectionFormat
projectionFormat
private DeliveryType
deliveryType
private boolean
isLiveVideo
-
Constructor Summary
Constructors Constructor Description Video.Builder(String uri)
The Video.
-
Method Summary
Modifier and Type Method Description Video.Builder
setProjectionFormat(@NonNull() Video.ProjectionFormat projectionFormat)
Sets the Video Projection Format. Video.Builder
setDeliveryType(@NonNull() DeliveryType deliveryType)
Sets the Video Delivery Type. Video.Builder
setIsLiveVideo(boolean isLiveVideo)
Indicates whether this video is Live or not. Video
build()
Builds the Video object. -
-
Constructor Detail
-
Video.Builder
Video.Builder(String uri)
The Video.- Parameters:
uri
- the String URI to the video
-
-
Method Detail
-
setProjectionFormat
@NonNull() Video.Builder setProjectionFormat(@NonNull() Video.ProjectionFormat projectionFormat)
Sets the Video Projection Format.
- Parameters:
projectionFormat
- the projection format
-
setDeliveryType
@NonNull() Video.Builder setDeliveryType(@NonNull() DeliveryType deliveryType)
Sets the Video Delivery Type.
- Parameters:
deliveryType
- the delivery type
-
setIsLiveVideo
@NonNull() Video.Builder setIsLiveVideo(boolean isLiveVideo)
Indicates whether this video is Live or not. This will help to configure the video with itsright attributes.
Once the video is loaded in the player, it is recommended to use isLive and hasDvr to determine that a Video is live andhas DVR capabilities, respectively.
- Parameters:
isLiveVideo
- true to indicate the video is Live
-
-
-
-