Skip to content

@line/bot-sdkDocs


@line/bot-sdk / FlexVideo

Type Alias: FlexVideo

FlexVideo: object

This component draws a video.

Type declaration

action?

optional action: Action

Action performed when this button is tapped. Specify an action object.

altContent

altContent: FlexBox | FlexImage

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.

  • Protocol: HTTPS (TLS 1.2 or later)
  • Image format: JPEG or PNG
  • Maximum data size: 1 MB

aspectRatio?

optional aspectRatio: string

Aspect ratio of the video. {width}:{height} format. Specify the value of {width} and {height} in the range from 1 to 100000. However, you cannot set {height} to a value that is more than three times the value of {width}. The default value is 1:1.

previewUrl

previewUrl: string

Preview image URL (Max character limit: 2000)

  • Protocol: HTTPS (TLS 1.2 or later)
  • Image format: JPEG or PNG
  • Maximum data size: 1 MB

type

type: "video"

url

url: string

Video file URL (Max character limit: 2000)

  • Protocol: HTTPS (TLS 1.2 or later)
  • Video format: mp4
  • Maximum data size: 200 MB

Defined in

lib/types.ts:1581