Skip to main content

Class: ChannelLive

Continuable of videos inside a BaseChannel

Example

const channel = await youtube.findOne(CHANNEL_NAME, {type: "channel"});
await channel.live.next();
console.log(channel.live.items) // first 30 live videos

let newLives = await channel.videos.next();
console.log(newLives) // 30 loaded live videos
console.log(channel.live.items) // first 60 live videos

await channel.live.next(0); // load the rest of the live videos in the channel

Hierarchy

Properties

channel

Optional channel: BaseChannel

The channel this live videos belongs to


client

client: Client

An instance of Client

Inherited from

Continuable.client


continuation

Optional continuation: null | string

Inherited from

Continuable.continuation


items

items: VideoCompact[] = []

Inherited from

Continuable.items

Methods

next

next(count?): Promise<VideoCompact[]>

Fetch next items using continuation token

Parameters

NameTypeDefault value
countnumber1

Returns

Promise<VideoCompact[]>

Inherited from

Continuable.next