Skip to content

@line/bot-sdk


@line/bot-sdk / FlexVideo

Type Alias: FlexVideo

FlexVideo = object

Defined in: lib/types.ts:1581

This component draws a video.

Properties

action?

optional action: Action

Defined in: lib/types.ts:1622

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


altContent

altContent: FlexBox | FlexImage

Defined in: lib/types.ts:1610

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

Defined in: lib/types.ts:1617

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

Defined in: lib/types.ts:1598

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"

Defined in: lib/types.ts:1582


url

url: string

Defined in: lib/types.ts:1590

Video file URL (Max character limit: 2000)

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