Skip to main content

AttachmentVideoOptions

@lowcode/runtime-core


Interface: AttachmentVideoOptions

Defined in: components/AttachmentVideo.tsx:38

Опции для функции createAttachmentVideo.

Properties

cacheTtlMs?

optional cacheTtlMs: number

Defined in: components/AttachmentVideo.tsx:62

TTL кеша в миллисекундах.

По умолчанию 5 минут.


fetchAttachment

fetchAttachment: FetchAttachmentFn

Defined in: components/AttachmentVideo.tsx:44

Функция для загрузки attachment по ID.

Предоставляется хостом (builder-web или runtime-host).


normalizeExternalUrl()?

optional normalizeExternalUrl: (url) => string

Defined in: components/AttachmentVideo.tsx:55

Нормализует внешние URL перед рендером.

Parameters

url

string

Returns

string


refreshAttachment?

optional refreshAttachment: FetchAttachmentFn

Defined in: components/AttachmentVideo.tsx:50

Функция для обновления presigned URL по ID.

Опционально. Если не задана, повторный refresh не выполняется.