spotify

Showing a album cover

亡梦爱人 提交于 2020-01-06 08:42:03
问题 I was wondering how to add a album cover on my spotify-app? With this code I can reveal the album title, but how can I show the album cover!? function updatePageWithAlbumName() { var header = document.getElementById("album"); // This will be null if nothing is playing. var playerTrackInfo = sp.trackPlayer.getNowPlayingTrack(); if (playerTrackInfo == null) { header.innerText = "Geen album!"; } else { var track = playerTrackInfo.track; header.innerText = track.album.name; } } 回答1: Please don't

libspotify API: image ID format?

纵饮孤独 提交于 2020-01-06 07:29:12
问题 Is the image ID returned by sp_album_cover and sp_artist_portrait zero terminated? or is its length fixed? Thanks. 回答1: It's an opaque struct: i.e., its contents are undefined. If you want a sane way of printing or storing an image, convert it to a link then a string: sp_link_create_from_image() followed by sp_link_as_string() . 来源: https://stackoverflow.com/questions/10882295/libspotify-api-image-id-format

access users data in spotify app

夙愿已清 提交于 2020-01-06 03:29:25
问题 Using the advice in this post I have been able to access the spotify users data for their playlists with sp = getSpotifyApi(1); console.log (sp.core.library.getAlbums()); I want to access the spotify user data for the user logged into the app, specifically the spotify uri for the user. sp = getSpotifyApi(1); console.log (sp.core.user); // is undefined console.log (sp.social.relations); // is undefined How can I do this? 回答1: This information is not available in the Spotify Apps API for

What library to use when generating Spotify playlists

别说谁变了你拦得住时间么 提交于 2020-01-05 08:48:12
问题 I need to generate real Spotify playlists (not a text string that you can drop on Spotify) belonging to a real Spotify-user (me). My tools are .NET 4.0 and Javascript. It is a web app i'm creating not a Spotify-app living in Spotify. What is the best/easiest library to use to achieve this? 回答1: Where will your app live? If you're building an app inside Spotify, use this library: http://developer.spotify.com/download/spotify-apps-api/preview/reference/ If you're building a web app outside

How can I get a list of playlists by user with the spotify web api?

旧巷老猫 提交于 2020-01-05 05:35:09
问题 I'm working on a project and I would like to get a list of all the playlists of the logged in user on spotify. Currently I can loggin and see user info (by following the demo on spotify). Now I want to get the playlists of the user that is logged in and that is where I'm stuck. This is the code I have: /** * This is an example of a basic node.js script that performs * the Authorization Code oAuth2 flow to authenticate against * the Spotify Accounts. * * For more information, read * https:/

What audio format Spotify uses and how they transfer the files to mobile devices?

若如初见. 提交于 2020-01-04 08:13:46
问题 this question is just out of pure curiosity. I noticed, that when I sync my phone with my Spotify playlists, music is transfered really fast, I haven`t benchmarked or something, but it just feels times faster than just downloading 20 or so mp3s. How they do it ? Is it some kind of special audio format ? Or maybe they compress the data somehow when transfering ? 回答1: This isn't really a programming question, but I'll bite. Spotify uses OGG audio for its mobile clients. Depending on the quality

What audio format Spotify uses and how they transfer the files to mobile devices?

有些话、适合烂在心里 提交于 2020-01-04 08:13:11
问题 this question is just out of pure curiosity. I noticed, that when I sync my phone with my Spotify playlists, music is transfered really fast, I haven`t benchmarked or something, but it just feels times faster than just downloading 20 or so mp3s. How they do it ? Is it some kind of special audio format ? Or maybe they compress the data somehow when transfering ? 回答1: This isn't really a programming question, but I'll bite. Spotify uses OGG audio for its mobile clients. Depending on the quality

Libstpotify API - How can I login with my Facebook credentials?

老子叫甜甜 提交于 2020-01-04 07:52:18
问题 Old-school* Spotify pseudo/password credentials work with Libspotify-based apps while Facebook credentials don't. So how do users login to a Libspotify-based app with their Facebook account ? *Before Facebook accounts became mandatory... 回答1: As of libSpotify 11 Facebook login should work fine — just have the user login with their Facebook email address and password. If you're on iOS, you must use the login flow supplied with the library ( SPLoginViewController and friends) - see the sample

Spotify Play Button track set limit?

白昼怎懂夜的黑 提交于 2020-01-03 00:33:33
问题 I'm playing with the spotify play button and try to make it display an arbitrary set of tracks, that I'm giving as a comma-separated list of IDs. It works well most of the time, but it can happen that the button is not properly rendered, and displays the Spotify Developer Page instead, like shown here: http://xben.free.fr/spotify/ I feel like it happens when using an important number of tracks (more than 80). Has one of you experienced the same problem, or know if there is a limitation? I

Update on Spotify API not allowing auto play

瘦欲@ 提交于 2020-01-01 07:05:08
问题 I've been developing a website that uses the Spotify API which links to track via the track URI: spotify:track:--TRACKIDHERE-- For instance a band called Circa Waves and their song 'T Shirt Weather': spotify:track:5DrZ0fdWlP0rtwR6VOsrWt However, since the update of the Spotify software recently (where the lyrics button was added and the volume changed to the right hand side) when you click the URI the tracks no longer autoplay when Spotify pops up on your computer. Is there anyway around this