Class: Video
Represents a Video, usually returned from client.getVideo()
Hierarchy
↳
Video
Implements
VideoProperties
Properties
captions
• captions: null
| VideoCaptions
Captions helper class of this video (if caption exists in this video)
Inherited from
channel
• channel: BaseChannel
The channel that uploaded this video
Implementation of
VideoProperties.channel
Inherited from
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
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
duration
• duration: number
The duration of this video in second
Implementation of
VideoProperties.duration
id
• id: string
Implementation of
VideoProperties.id
Inherited from
isLiveContent
• isLiveContent: boolean
Whether this video is a live content or not
Implementation of
VideoProperties.isLiveContent
Inherited from
likeCount
• likeCount: null
| number
How many like does this video have, null if the like count is hidden
Implementation of
VideoProperties.likeCount
Inherited from
related
• related: VideoRelated
Continuable of videos / playlists related to this video
Inherited from
tags
• tags: string
[]
The tags of this video
Implementation of
VideoProperties.tags
Inherited from
thumbnails
• thumbnails: Thumbnails
Thumbnails of the video with different sizes
Implementation of
VideoProperties.thumbnails
Inherited from
title
• title: string
The title of this video
Implementation of
VideoProperties.title
Inherited from
uploadDate
• uploadDate: string
The date this video is uploaded at
Implementation of
VideoProperties.uploadDate
Inherited from
viewCount
• viewCount: null
| number
How many view does this video have, null if the view count is hidden
Implementation of
VideoProperties.viewCount
Inherited from
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
Name | Type |
---|---|
languageCode? | string |
Returns
Promise
<undefined
| Caption
[]>