Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8304631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T17:54:09+00:00 2026-06-08T17:54:09+00:00

I just started writing a little Spotify App and can’t figure out how to

  • 0

I just started writing a little Spotify App and can’t figure out how to invoke the two functions next/star from Javascript. I just need this simple functionality: From within my App (Javascript) call a method that skips the current track and plays the next one (if there is any) OR call a method that “stars” (is this really a verb?) the current song.

Is this API DOC the only resource for building my own App? Thanks in advance for any hints on this!

UPDATE: Just found out how to SKIP: sp.trackPlayer.skipToNextTrack();
Unfortunately, how to “star” a track remains unknown.

UPDATE 2: GOT IT! : models.library.starredPlaylist.add(models.player.track); – yep that makes sense.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T17:54:10+00:00Added an answer on June 8, 2026 at 5:54 pm

    The correct way to star a track is indeed the function you wrote:

    models.library.starredPlaylist.add(models.player.track);
    

    trackPlayer is not a supported object that shouldn’t be accessed by developers since it’s not versioned properly. This means that it may break in the future when we do updates to the platform bridge.

    We recommend only using the documented classes on our developer website.

    https://developer.spotify.com/technologies/apps/docs/beta/

    The correct way to skip to the next track is to use:

    models.player.next()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I just started writing powershell scripts for Citrix XenServer. However, I can only find
I'm just getting started on writing functions instead of writing everything inline. Is this
Just a little starter information. I am writing an Andorid app that talks to
I've just started learning Objective-C and made a little compass app that will display
I've just started writing my first app. I have EditText field in which i
I just started out writing my first unit tests with JUnit and I ran
I've just started writing a reasonably straightforward site using sinatra. My problem is that
I've just started writing GAE web applications in Java so I'm kind of new
I have just started learning Jquery and am new to writing javascript (I am
I have just installed C# 2008 Express Edition 2008 and started writing code. My

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.