Skip to main content

Class: BaseVideo

Represents a Video

Hierarchy​

Implements​

  • BaseVideoProperties

Properties​

adaptiveFormats​

• adaptiveFormats: YoutubeRawData[]

The adaptive formats of the video

Implementation of​

BaseVideoProperties.adaptiveFormats


captions​

• captions: null | VideoCaptions

Captions helper class of this video (if caption exists in this video)


channel​

• channel: null | BaseChannel

The channel that uploaded this video

Implementation of​

BaseVideoProperties.channel


channels​

• channels: null | BaseChannel[]

The collaborators of this video


client​

• client: Client

An instance of Client

Implementation of​

BaseVideoProperties.client

Inherited from​

Base.client


description​

• description: string

The description of this video

Implementation of​

BaseVideoProperties.description


formats​

• formats: YoutubeRawData[]

The formats of the video

Implementation of​

BaseVideoProperties.formats


id​

• id: string

Implementation of​

BaseVideoProperties.id


isLiveContent​

• isLiveContent: boolean

Whether this video is a live content or not

Implementation of​

BaseVideoProperties.isLiveContent


likeCount​

• likeCount: null | number

How many like does this video have, null if the like count is hidden

Implementation of​

BaseVideoProperties.likeCount


• related: VideoRelated

Continuable of videos / playlists related to this video


tags​

• tags: string[]

Implementation of​

BaseVideoProperties.tags


thumbnails​

• thumbnails: Thumbnails

Thumbnails of the video with different sizes

Implementation of​

BaseVideoProperties.thumbnails


title​

• title: string

The title of this video

Implementation of​

BaseVideoProperties.title


uploadDate​

• uploadDate: string

The date this video is uploaded at

Implementation of​

BaseVideoProperties.uploadDate


viewCount​

• viewCount: null | number

How many view does this video have, null if the view count is hidden

Implementation of​

BaseVideoProperties.viewCount

Accessors​

upNext​

• get upNext(): VideoCompact | PlaylistCompact

Video / playlist to play next after this video, alias to

video.related.items[0]

Returns​

VideoCompact | PlaylistCompact