Constructor
constructor(data)
Parameters
data: VideoEmbedData
Embed data.
Properties
playlist: string
A link to the master playlist file for the video.
aspectRatio?: "@atcute/client/lexicons".AppBskyEmbedDefs.AspectRatio
The video's aspect ratio.
captions?: "@atcute/client/lexicons".AppBskyEmbedVideo.Caption[]
Any captions associated with the video.
Methods
isRecordWithMedia()
Whether this embed contains a record with media.
Returns
this is RecordWithMediaEmbed
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.