Skip to main content

Class: BaseVideo

Represents a Video

Hierarchy

Implements

  • BaseVideoProperties

Properties

captions

captions: null | VideoCaptions

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


channel

channel: BaseChannel

The channel that uploaded this video

Implementation of

BaseVideoProperties.channel


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


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[]

The tags of this video

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