video

Adds Attachment.Video to the list of attachments.


fun video(url: String)(source)

Adds Attachment.Video with AttachmentContent.URL content from the provided URL.

Parameters

url

Video URL

Throws

if the URL is not valid or no file in the URL was found.


fun video(path: Path)(source)

Adds Attachment.Video with AttachmentContent.Binary.Bytes content from the provided local file path.

Parameters

path

Path to local video file

Throws

if the path is not valid, the file does not exist, or is not a regular file.