Track

Track

The track, represents a music file, or stream, handles creating a resource and preloading.

Constructor

new Track(url)

Parameters:
Name Type Description
url String URL to stream from
Source:

Methods

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

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

(async) preload()

Preloads the track
Source: