Skip to main content

Class: LiveVideo

Represents a video that's currently live, usually returned from client.getVideo()

Hierarchy​

Implements​

  • LiveVideoProperties

Properties​

adaptiveFormats​

• adaptiveFormats: YoutubeRawData[]

The adaptive formats of the video

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

Inherited from​

BaseVideo.channel


channels​

• channels: null | BaseChannel[]

The collaborators of this video

Inherited from​

BaseVideo.channels


chatContinuation​

• chatContinuation: string

Current continuation token to load next chat


client​

• client: Client

An instance of Client

Inherited from​

BaseVideo.client


description​

• description: string

The description of this video

Inherited from​

BaseVideo.description


formats​

• formats: YoutubeRawData[]

The formats of the video

Inherited from​

BaseVideo.formats


id​

• id: string

Inherited from​

BaseVideo.id


isLiveContent​

• isLiveContent: boolean

Whether this video is a live content or not

Inherited from​

BaseVideo.isLiveContent


likeCount​

• likeCount: null | number

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

Inherited from​

BaseVideo.likeCount


• related: VideoRelated

Continuable of videos / playlists related to this video

Inherited from​

BaseVideo.related


tags​

• tags: string[]

Inherited from​

BaseVideo.tags


thumbnails​

• thumbnails: Thumbnails

Thumbnails of the video with different sizes

Inherited from​

BaseVideo.thumbnails


title​

• title: string

The title of this video

Inherited from​

BaseVideo.title


uploadDate​

• uploadDate: string

The date this video is uploaded at

Inherited from​

BaseVideo.uploadDate


viewCount​

• viewCount: null | number

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

Inherited from​

BaseVideo.viewCount


watchingCount​

• watchingCount: number

Number of people who's watching the live stream right now

Accessors​

upNext​

• get upNext(): VideoCompact | PlaylistCompact

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

video.related.items[0]

Returns​

VideoCompact | PlaylistCompact

Methods​

emit​

▸ emit<T>(event, ...args): boolean

Type parameters​

NameType
Textends "chat"

Parameters​

NameType
eventT
...argsParameters<LiveVideoEvents[T]>

Returns​

boolean


on​

▸ on<T>(event, listener): AsyncIterableIterator<any>

Type parameters​

NameType
Textends "chat"

Parameters​

NameType
eventT
listenerLiveVideoEvents[T]

Returns​

AsyncIterableIterator<any>


playChat​

▸ playChat(delay?): void

Start polling for get live chat request

Parameters​

NameTypeDefault valueDescription
delaynumber0chat delay in millisecond

Returns​

void


stopChat​

▸ stopChat(): void

Stop request polling for live chat

Returns​

void