Maya Docs
  • Introducing Maya
  • Product
    • Command Bar
    • Workspaces
      • Importing JSON Workflows
    • Modules
      • Config Profiles
    • Node Library
      • Common
        • Inject
        • Debug
        • Complete
        • Catch
        • Status
      • Functions
        • Function
        • Change
        • Switch
        • Template
        • Range
        • Delay
        • Trigger
        • Filter
        • Exec
      • Storage
        • Read File
        • Modify File
        • Watch Files
      • Parser
        • CSV
        • HTML
        • JSON
        • XML
        • YAML
      • Sequence
        • Split Into Array
        • Join Array
        • Sort Array
        • Batch Messages
      • Dashboard
        • Button
        • Chart
        • Slider
        • Gauge
        • Switch
        • Dropdown
        • Numeric Input
        • Text Input
        • Template
        • Date Picker
        • Colour Picker
        • Form
        • Display Text
        • Audio Out
      • Network
        • Websockets
          • Websocket Out
          • Websocket In
        • HTTP
          • HTTP In
          • HTTP Response
          • HTTP Request
      • Command Bar
        • Bot Scheduler
        • Bot Command In
        • Bot Command Out
          • Bot Response
          • Bot Web Card
          • Bot Dash Card
        • Custom Search In
        • Custom Search Out
        • Bot Info
      • Spotify
        • Get Playback State
        • Control Playback
        • Play
        • Library
        • Playlist
        • Search
    • Web Extension
      • Selecting Elements
      • Making a web automation skill in 5 minutes
    • Troubleshooting
    • Changelog
  • Tutorials
    • Install skills/modules from store
    • Building fundamentals
    • Connect different services
      • Spotify + Figma
      • Zoom + Google Calendar
    • Browser Automation
      • Control YouTube - Easy
      • Scrape Twitter - Moderate
      • Manage Gmail Inbox - Hard
Powered by GitBook
On this page
  • Properties
  • How "toggleRepeat" works
  • How "toggleShuffle" works
  • How "addToQueue" works
  • Outputs

Was this helpful?

  1. Product
  2. Node Library
  3. Spotify

Control Playback

You can use this node to toggle shuffle or repeat, play, pause, resume and skip songs, and add songs to queue.

PreviousGet Playback StateNextPlay

Last updated 3 years ago

Was this helpful?

Properties

  • action (enum) : The action that the node will perform. The actions "play", "pause", "resume" and "skip" are obvious. See below for "toggleRepeat", "toggleShuffle" and "addToQueue".

How "toggleRepeat" works

When you set the action to "toggleRepeat", you will also additionally need to specify the repeatMode property. The property can have the following values (you will need to type these out in the field) -

  • track (string) : Set repeatMode to "track" to repeat the currently playing track

  • context (string) : Set repeatMode to "context" to repeat the currently playing context, i.e., repeat currently playing album, playlist, etc.

  • off (string) : Set repeatMode to "off" to turn off repeat.

How "toggleShuffle" works

When you set the action to "toggleShuffle", you will also additionally need to specify the shuffleMode property. The property can have the following values (you will need to type these out in the field) -

  • true (string) : Set shuffleMode to "true" to turn shuffle on.

  • false (string) : Set shuffleMode to "false" to turn shuffle off.

How "addToQueue" works

When you set the action to "addToQueue", you will also additionally need to specify the trackUri property. This corresponds to the URI of the track that you want to add to the queue. You can read more about track URIs on Spotify .

Outputs

This node does not have any outputs, i.e., it does not add or modify any properties to the msg object.

here