mpc-js
    Preparing search index...

    Class PlaybackCommands

    Index

    Constructors

    Methods

    • Pauses or resumes playback.

      Parameters

      • pause: boolean = true

      Returns Promise<void>

    • Begins playing the playlist at song number songPos.

      Parameters

      • OptionalsongPos: number

      Returns Promise<void>

    • Begins playing the playlist at song with the given songId.

      Parameters

      • songId: number

      Returns Promise<void>

    • Seeks to the position time (in seconds; fractions allowed) of entry songPos in the playlist.

      Parameters

      • songPos: number
      • time: number

      Returns Promise<void>

    • Seeks to the position time (in seconds; fractions allowed) within the current song. If relative is true, then the time is relative to the current playing position.

      Parameters

      • time: number
      • relative: boolean = false

      Returns Promise<void>

    • Seeks to the position time (in seconds; fractions allowed) of song with the given songId.

      Parameters

      • songId: number
      • time: number

      Returns Promise<void>