spotify

Spotify App API - Playlist Subscribe

谁说我不能喝 提交于 2019-12-05 07:28:22
问题 Looking at the APP API, it seems like you can determine whether or not a user is subscribed to a playlist or not. However, my app requires the user to be able to subscribe or un-subscribe from a playlist. Is this possible using the Javascript App API at all? 回答1: For the currently logged in user you can subscribe and unsubscribe from a playlist by setting the playlist's subscribed property. var m = sp.require('sp://import/scripts/api/models') var playlist = m.Playlist.fromURI('spotify:user:

Lock Screen iPod Controls Not Working With Spotify Music Player

大兔子大兔子 提交于 2019-12-05 06:04:18
I added the Spotify player to my app which also plays music using the MPMusicPlayerController. When music is playing from Spotify and the screen is locked, the remote control events are not received for play/pause and FFW/RWD when the user presses these buttons on the locked screen. If music is playing from the MPMusicPlayerController, I am able to receive the remote control events based on the following code: -(void) ViewDidLoad { ... [[UIApplication sharedApplication] beginReceivingRemoteControlEvents]; [self becomeFirstResponder]; ... } and - (BOOL) canBecomeFirstResponder { return YES; } -

what is the sample rate of spotify stream (libspotify)?

僤鯓⒐⒋嵵緔 提交于 2019-12-05 03:05:24
问题 What is the sample rate of spotify stream? The call back function "music_delivery" in libspotify example playtrack takes audio format from libspotify directly. Is the audio decoded to be raw wave data already? Is the sample rate 44.1kHz/16bit by default? Does the libspotify convert the original audio sample rate to be 44.1KHz/16bit? Thanks. 回答1: The audio you get in the music_delivery callback is indeed raw PCM data. The sample rate and bit depth is described in the sp_audioformat struct

Get play count of a track from Spotify API

别说谁变了你拦得住时间么 提交于 2019-12-05 00:59:14
Is it possible to get the play count of a song (for the current user)? I only found Toplist and the Track class, but neither tells me how often a user listened to a song. As far as I know there is no way to retrieve that data at the moment. This is not possible through the Spotify API right now. The Last.fm API does offer information similar to this, as a potential work-around. Marked as not right now on the Spotify support site. http://community.spotify.com/t5/Spotify-Ideas/Personal-play-count-for-songs/idi-p/506618 However, this article from 538 a journalist got a look at Nestify where that

Accessing Spotify API for Multiple Artists in R

99封情书 提交于 2019-12-04 19:20:33
I have created a Client ID and Secret Key in Spotify's developer app section. I am referencing this document and want to extend this by choosing multiple artists. https://www.r-bloggers.com/the-eurovision-2016-song-contest-in-an-r-shiny-app/ In this example, they are only choosing 1 artist ID but there are some holes to this, 1) How do you obtain the artist name rather than the artist ID because I can't find a glossary key anywhere for the artist ID? 2) How do you choose multiple artists rather than just one. So for example, how do I choose Frank Sinatra and Elvis Presley? Code is below:

Spotify API: INVALID_APP_ID

青春壹個敷衍的年華 提交于 2019-12-04 18:18:08
问题 I am currently working on an android app which is implementing the Spotify API. I have all of the code connecting my app to spotify using the tutorial and have been working on my app for sometime now. When I play a song through my app after authenticating the user, it works perfectly, that is on my emulator. When I switch it over to my phone it didn't work and gave me an INVALID_APP_ID error in the android response. When I uninstalled spotify off my phone and then tried to login to spotify

Spotify Play Button - autoplay?

随声附和 提交于 2019-12-04 17:07:33
I am trying to integrate Spotify Play Button into ThingLink Spotify tag so that when the iframe loads, it starts playing automatically. Is there a way to do that with some parameter? The functionality would be similar to Soundcloud & Vimeo players here: http://www.thinglink.com/scene/251225958915244034 Without the autoplay, user would have to click on Play twice, which wouldn't be that good of UX. Thanks! -Albert There is no autoplay functionality at present. Autoplay isn't really what the Play Button is about — it's designed so people can listen to music if they want to. We don't really want

Echonest API Migration questions

。_饼干妹妹 提交于 2019-12-04 13:47:20
问题 I use the Echonest API currently to convert between ID spaces (MusicBrainz -> SeatGeek). With the upcoming migration to the Spotify API, I'm wondering if there will be any endpoint for Project Rosetta. This is a pretty crucial feature of my application. 来源: https://stackoverflow.com/questions/36657505/echonest-api-migration-questions

Spotify API Create Temp Playlist Not Loading

大兔子大兔子 提交于 2019-12-04 13:16:21
I'm making a little app that displays a list of the top first song of an artist's related artists. When I try and load my app for the first time, it shows nothing. But, when I "Reload Application" everything seems to work. When I constantly start "Reloading" it keeps adding more of the same tracks to the list as well. How do I stop it from continually appending more tracks to the list as well as tighten up the code so that it works on load? require([ '$api/models', '$views/list#List', '$api/toplists#Toplist' ], function(models, List, Toplist){ 'use strict'; // Build playlist function buildList

SPLoginViewController to remember credentials

六月ゝ 毕业季﹏ 提交于 2019-12-04 13:08:14
问题 In CocoaLibSpotify, how do I get SPLoginViewController to store credentials, so users later can login automatically via [[SPSession sharedSession] attemptLoginWithStoredCredentials:]? 回答1: You don't. Instead, implement the SPSessionDelegate method -session:didGenerateLoginCredentials:forUserName: and store the credentials in NSUserDefaults or whatever (the given credentials are already encrypted and safe for storing in cleartext). Next time your app launches, if you have available credentials