Class 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
    • Method Detail

      • 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()
        Alternative content.

        The alternative content will be displayed on the screen of a user device that is using a version of LINE that doesn't support the video component. Specify a Box or an Image.

      • getAspectRatio

        @Nullable
        public java.lang.String getAspectRatio()
        Aspect ratio of the video.

        width:height format. Specify the value of width and height in the range from 1 to 100000. However, you can't set height to a value that is more than three times the value of width. The default value is 1:1.

      • getAction

        @Nullable
        public Action getAction()
        URI Action.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object