Playlists manager class. Access via the global app.playlists.

Playlists

Constructors

Properties

root: Playlist

Returns the 'root' playlist, which is considered to be a virtual playlist whose children are all the first level playlists.

Methods

  • Returns a playlist based on its ID.

    Parameters

    • id: number

      ID of the playlist

    Returns Promise<any>

    as promise

  • Returns a playlist based on its title.

    Parameters

    • id: string

      title of the playlist

    Returns Promise<any>

    as promise

  • Save list of tracks to playlist file

    Parameters

    • SL: Tracklist
    • fname: string

      default filename (if it is absolute path with file extension then dialog for selecting a location isn't shown and file is saved directly)

    • title: string

    Returns Promise<any>

    as promise