Skip to main content

Class: Video

Represents a Video, usually returned from client.getVideo()

Hierarchy​

Implements​

  • VideoProperties

Properties​

adaptiveFormats​

• adaptiveFormats: YoutubeRawData[]

The adaptive formats of the video

Implementation of​

VideoProperties.adaptiveFormats

Inherited from​

BaseVideo.adaptiveFormats


captions​

• captions: null | VideoCaptions

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

Inherited from​

BaseVideo.captions


channel​

• channel: null | BaseChannel

The channel that uploaded this video

Implementation of​

VideoProperties.channel

Inherited from​

BaseVideo.channel


channels​

• channels: null | BaseChannel[]

The collaborators of this video

Inherited from​

BaseVideo.channels


chapters​

• chapters: Chapter[]

Chapters on this video if exists

Implementation of​

VideoProperties.chapters


client​

• client: Client

An instance of Client

Implementation of​

VideoProperties.client

Inherited from​

BaseVideo.client


comments​

• comments: VideoComments

Continuable of videos inside a Video

Implementation of​

VideoProperties.comments


description​

• description: string

The description of this video

Implementation of​

VideoProperties.description

Inherited from​

BaseVideo.description


duration​

• duration: number

The duration of this video in second

Implementation of​

VideoProperties.duration


formats​

• formats: YoutubeRawData[]

The formats of the video

Implementation of​

VideoProperties.formats

Inherited from​

BaseVideo.formats


id​

• id: string

Implementation of​

VideoProperties.id

Inherited from​

BaseVideo.id


isLiveContent​

• isLiveContent: boolean

Whether this video is a live content or not

Implementation of​

VideoProperties.isLiveContent

Inherited from​

BaseVideo.isLiveContent


likeCount​

• likeCount: null | number

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

Implementation of​

VideoProperties.likeCount

Inherited from​

BaseVideo.likeCount


music​

• music: null | MusicMetadata

Music metadata (if exists)


• related: VideoRelated

Continuable of videos / playlists related to this video

Inherited from​

BaseVideo.related


tags​

• tags: string[]

Implementation of​

VideoProperties.tags

Inherited from​

BaseVideo.tags


thumbnails​

• thumbnails: Thumbnails

Thumbnails of the video with different sizes

Implementation of​

VideoProperties.thumbnails

Inherited from​

BaseVideo.thumbnails


title​

• title: string

The title of this video

Implementation of​

VideoProperties.title

Inherited from​

BaseVideo.title


uploadDate​

• uploadDate: string

The date this video is uploaded at

Implementation of​

VideoProperties.uploadDate

Inherited from​

BaseVideo.uploadDate


viewCount​

• viewCount: null | number

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

Implementation of​

VideoProperties.viewCount

Inherited from​

BaseVideo.viewCount

Accessors​

upNext​

• get upNext(): VideoCompact | PlaylistCompact

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

video.related.items[0]

Returns​

VideoCompact | PlaylistCompact

Inherited from​

BaseVideo.upNext

Methods​

getTranscript​

▸ getTranscript(languageCode?): Promise<undefined | Caption[]>

Get Video transcript (if exists)

Deprecated

use video.captions.get() instead

Parameters​

NameType
languageCode?string

Returns​

Promise<undefined | Caption[]>