mpc-js
    Preparing search index...

    Class StoredPlaylistsCommands

    Index

    Constructors

    Methods

    • Lists the songs in the playlist. Playlist plugins are supported.

      Parameters

      • name: string

      Returns Promise<string[]>

    • Prints a list of the playlist directory. Each playlist name comes with its last modification time. To avoid problems due to clock differences between clients and the server, clients should not compare this value with their local clock.

      Returns Promise<StoredPlaylist[]>

    • Loads the playlist into the current queue. Playlist plugins are supported. A range may be specified to load only a part of the playlist.

      Parameters

      • name: string
      • Optionalstart: number
      • Optionalend: number

      Returns Promise<void>

    • Adds uri to the playlist name.m3u. name.m3u will be created if it does not exist.

      Parameters

      • name: string
      • uri: string

      Returns Promise<void>

    • Deletes position from the playlist name.m3u.

      Parameters

      • name: string
      • position: number

      Returns Promise<void>

    • Moves the song at position from in the playlist name.m3u to the position to.

      Parameters

      • name: string
      • from: number
      • to: number

      Returns Promise<void>

    • Renames the playlist name.m3u to newName.m3u.

      Parameters

      • name: string
      • newName: string

      Returns Promise<void>