Class Video
- java.lang.Object
-
- com.linecorp.bot.model.message.flex.component.Video
-
- All Implemented Interfaces:
FlexComponent
public final class Video extends java.lang.Object implements FlexComponent
The following conditions must be met to use the video component.- The video component is specified directly under the hero block
- kilo, mega or giga is specified as the value of the size property of the bubble
- The bubble is not the child element of a carousel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Video.VideoAspectRatio
static class
Video.VideoBuilder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Video.VideoBuilder
builder()
boolean
equals(java.lang.Object o)
Action
getAction()
URIAction
.@NonNull FlexComponent
getAltContent()
Alternative content.java.lang.String
getAspectRatio()
Aspect ratio of the video.@NonNull java.net.URI
getPreviewUrl()
Preview image URL.@NonNull java.net.URI
getUrl()
Video file URL.int
hashCode()
Video.VideoBuilder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static Video.VideoBuilder builder()
-
toBuilder
public Video.VideoBuilder toBuilder()
-
getUrl
@NonNull public @NonNull java.net.URI getUrl()
Video file URL. (Max character limit: 2000)- Protocol: HTTPS (TLS 1.2 or later)
- Video format: mp4
- Max file size: 200 MB
-
getPreviewUrl
@NonNull public @NonNull java.net.URI getPreviewUrl()
Preview image URL. (Max character limit: 2000)- Protocol: HTTPS (TLS 1.2 or later)
- Image format: JPEG or PNG
- Maximum file size: 1 MB
-
getAltContent
@NonNull public @NonNull FlexComponent getAltContent()
-
getAspectRatio
@Nullable public java.lang.String getAspectRatio()
Aspect ratio of the video.width:height
format. Specify the value ofwidth
andheight
in the range from 1 to 100000. However, you can't setheight
to a value that is more than three times the value ofwidth
. The default value is1:1
.
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-