Skip to main content

AttachmentVideoProps

@lowcode/runtime-core


Interface: AttachmentVideoProps

Defined in: components/AttachmentVideo.tsx:68

Пропсы для Video компонента.

Extends

  • VideoHTMLAttributes<HTMLVideoElement>

Properties

autoplay?

optional autoplay: boolean

Defined in: components/AttachmentVideo.tsx:81

Автозапуск видео


controls?

optional controls: boolean

Defined in: components/AttachmentVideo.tsx:79

Показывать контролы воспроизведения

Overrides

React.VideoHTMLAttributes.controls


loop?

optional loop: boolean

Defined in: components/AttachmentVideo.tsx:83

Зацикливание воспроизведения

Overrides

React.VideoHTMLAttributes.loop


muted?

optional muted: boolean

Defined in: components/AttachmentVideo.tsx:85

Приглушенный звук

Overrides

React.VideoHTMLAttributes.muted


poster?

optional poster: string

Defined in: components/AttachmentVideo.tsx:87

Постер-изображение перед воспроизведением

Overrides

React.VideoHTMLAttributes.poster


sourceType?

optional sourceType: "url" | "upload"

Defined in: components/AttachmentVideo.tsx:77

Тип источника.

  • "url" → src считается обычным URL
  • "upload" → src считается attachmentId (нужно загрузить через API хоста)

src?

optional src: string

Defined in: components/AttachmentVideo.tsx:70

URL видео или ID attachment (обычно UUID).

Overrides

React.VideoHTMLAttributes.src