Constructor
new YoutubePlaylistTrack(url, ytmetadata)
Parameters:
Name | Type | Description |
---|---|---|
url |
String | The Url of the video |
ytmetadata |
Object | Metadata obtained from ytpl() |
- 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 |
- Overrides:
- Source:
(async) play() → {Promise.<?AudioResource>}
Creates an AudioResource and returns it
- Overrides:
- Source:
Returns:
- Type
- Promise.<?AudioResource>
(async) preload()
Preloads the track
- Overrides:
- Source: