class VideoEmbed

extends PostEmbed

A post embed that contains a video.

Constructor

constructor(data)

Parameters

data: VideoEmbedData

Embed data.

Properties

cid: string

The video's CID.

playlist: string

A link to the master playlist file for the video.

thumbnail?: string

The video's thumbnail.

alt?: string

The video's alt text.

aspectRatio?: "@atcute/client/lexicons".AppBskyEmbedDefs.AspectRatio

The video's aspect ratio.

captions?: "@atcute/client/lexicons".AppBskyEmbedVideo.Caption[]

Any captions associated with the video.

Methods

isImages()

Whether this embed contains images.

Returns

this is ImagesEmbed

isExternal()

Whether this embed is an external link.

Returns

this is ExternalEmbed

isRecord()

Whether this embed contains a record.

Returns

this is RecordEmbed

isRecordWithMedia()

Whether this embed contains a record with media.

Returns

this is RecordWithMediaEmbed

isVideo()

Whether this embed contains a video.

Returns

this is VideoEmbed

fromView(videoView, videoRecord)

Constructs a VideoEmbed from an embed view and a record.

Parameters

videoView: "@atcute/client/lexicons".AppBskyEmbedVideo.View

The view of the embed.

videoRecord: "@atcute/client/lexicons".AppBskyEmbedVideo.Main

The embed video record.

Returns

VideoEmbed