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
↳
ChannelLive
Properties
channel
• Optional channel: BaseChannel
The channel this live videos belongs to
client
• client: Client
An instance of Client
Inherited from
continuation
• Optional continuation: null | string
Inherited from
items
• items: VideoCompact[] = []
Inherited from
Methods
next
▸ next(count?): Promise<VideoCompact[]>
Fetch next items using continuation token
Parameters
| Name | Type | Default value |
|---|---|---|
count | number | 1 |
Returns
Promise<VideoCompact[]>