spotify

React/Node: Spotify API Error: 404 - No Active Device Found

坚强是说给别人听的谎言 提交于 2019-12-13 00:26:44
问题 I've created an app which works for Spotify Premium users only (PUT methods don't work for non-premium users according to Spotify's documentation). It's a ten-question interactive quiz where a playlist generates in your Spotify account, plays it and you have to guess the name of each song. It's generated with a NodeJS Backend and displayed via ReactJS. The game can be demoed here: https://am-spotify-quiz.herokuapp.com/ Code can be reviewed below: server.js const express = require('express');

Spotify API: Is there a way to determine when a song has finished playing?

荒凉一梦 提交于 2019-12-12 19:21:45
问题 I'm trying to build an application that would utilize Spotify's API to build a playlist, I'm wondering if there is a way to determine when a song has finished playing? I have checked their API and can't seem to find anything that I could ping or setup a callback for when it's complete. I have looked at this question: How can I tell if a song has ended or the next button was clicked with the spotify API? although I'm unsure of what API was being used. Any help is appreciated, Thanks 来源: https:

Spotify's “player state” is available in the editor, but in a packaged app, it gets only “«constant ****kPSP»”

為{幸葍}努か 提交于 2019-12-12 13:16:23
问题 Here's a testing code: tell application "Spotify" set playerState to player state as string end tell display dialog playerState Works fine from the AppleScript editor. However, when I export my script as an app, all I get is this: Why is this happening? 回答1: It seems that Spotify is not coercing the constant into a string. Since the editor can't coerce it from an applet as it does when you are running the script in AppleScript Editor, the four-letter constant code is returned. Since you can't

Intercept / Get Data sent to Spotify Widget on Android

眉间皱痕 提交于 2019-12-12 13:12:21
问题 I have Spotify and want to use the title and Song name in my Application. (Final Goal would be to export it to my Liveview watch, so that I can contron Spotify with it) As there is a Spotify-Widget, I simply would like to add a Broadcast Recevier to get the Data sent to the widget. So I add a Broadcast receiver, and as far as I understand the concept, this should suffice and I then should be able to get the data Spotify sends to the widget. According to the Documentation, you can do

How to automatically play Playlist in Spotify Android app

佐手、 提交于 2019-12-12 07:58:39
问题 I'm trying to play a known playlist in the Spotify app. The best I've got is to load the playlist, but not play it. Two things I've tried. Firstly to play from search: Intent intent = new Intent(MediaStore.INTENT_ACTION_MEDIA_PLAY_FROM_SEARCH); intent.setComponent(new ComponentName("com.spotify.music", "com.spotify.music.MainActivity")); intent.putExtra(MediaStore.EXTRA_MEDIA_FOCUS, MediaStore.Audio.Playlists.ENTRY_CONTENT_TYPE); intent.putExtra(MediaStore.EXTRA_MEDIA_PLAYLIST, <PLAYLIST>);

Using libspotify for a web-based application

余生颓废 提交于 2019-12-12 05:57:08
问题 I simply am wondering if the only way to have any sort of spotify application be web-based, as opposed to app-based, would be to have it as a Spotify app within the Spotify application or if it's possible to have it standalone. 回答1: It sounds like you're getting confused between our APIs. Spotify Apps is a platform inside our Spotify client. You write them using HTML5/JavaScript. They're run locally, but you can have it talk to a backend service if you wish. Spotify's Web API provides HTTP

Preview URL Spotify API or Lib

廉价感情. 提交于 2019-12-12 05:29:46
问题 Is there a way to get a 30 seconds preview URL for a track in Spotify API or Lib (like Deezer API preview URL) ? 回答1: No. Spotify doesn't have this functionality at all at the moment, so there's no API for it. 来源: https://stackoverflow.com/questions/13083000/preview-url-spotify-api-or-lib

Editing Time Field in a Spotify App Playlist

跟風遠走 提交于 2019-12-12 04:58:19
问题 I am having trouble removing the time field from a playlist in the Spotify App. I only want to display Song title, Artist and Album. Any help on this topic would be truly helpful. 回答1: You can specify which track attributes to display using the List object. An example is here: http://deceptacle.com/2011/12/26/spotify-app-api-some-things/ var list = new views.List(playlist, function (track) { return new views.Track(track, views.Track.FIELD.NAME | views.Track.FIELD.ARTIST | views.Track.FIELD

Null or undefined artist images with Spotify Apps API

天大地大妈咪最大 提交于 2019-12-12 04:46:58
问题 I am having trouble geting artist images in the Spotify Apps API. The image property of the Artist object is mostly returning as null or undefined. This is the case whether I get the artist directly from a collection of artists (such as from sp.core.library.getArtists()) or if I use Artist.fromURI and use a callback function. Here is an example of the sort of thing I am doing: var m = sp.require('sp://import/scripts/api/models'); var a = m.Artist.fromURI(uri, function(artist) { console.log

How can I get song metadata without using playUri using the Android SDK?

烂漫一生 提交于 2019-12-12 04:30:10
问题 I want to get song metadata from a URI without starting to play/buffer that song. The only way I can see of doing it right now is calling playUri() and then getMetadata() but I don't want to play it immediately. Is there any other way? Thanks! Edit: Is there a way to do this via the SDK with non-local files? 回答1: Use MediaMetaDataRetreiver: MediaMetadataRetriever retriever = new MediaMetadataRetriever(); retriever.setDataSource(context, uri); String artist = retreiver.extractMetadata