YoutubeTrack

YoutubeTrack

Represents a youtube video

Constructor

new YoutubeTrack(url, ytMetadata)

Parameters:
Name Type Description
url String The Url of the video
ytMetadata Object Metadata obtained from ytdl.getInfo()
Source:

Extends

Methods

extractMetadata(ytMetadata)

Sets the info of the track according to data from ytdl.getInfo
Parameters:
Name Type Description
ytMetadata Object Data from ytdl.getInfo
Source:

(async) play() → {Promise.<?AudioResource>}

Creates an AudioResource and returns it
Overrides:
Source:
Returns:
Type
Promise.<?AudioResource>

(async) preload()

Preloads the track
Overrides:
Source: