Custom Web Player for Spotify - spotify

As far as I know, it is not possible to develop a Web app (outside spotify.com) providing a custom Web player which plays Spotify songs, am I right?
The only option still seems to be the spotify play button, which is very limited though.
I have just seen, however, this example
1) http://static.echonest.com/enspex/web/ChillRadio/
this one
2) http://lab.possan.se/thirtify/
and this one
3) https://developer.spotify.com/web-api/code-examples/ (see "Play something" snippet)
that seems to use a custom player (2) and 3) are not working for me, though). Is there any non-documented feature?
Thanks

The Spotify Web API provides URLs to 30 second MP3 previews of tracks, which is what these examples are using. This is documented here (the preview_url property).
It is not possible to do full-length track streaming on the web with Spotify's APIs.

Related

Is there a way to get audio from spotify

So I'm Working on a NodeJs project and am wondering if there is a way to get audio from Spotify Like you Input a song URL and It plays the track, I've looked all around and can only find stuff for the web browser, I don't know if they even have a way. If there is any info about this please let me know.
You'd have to make calls through the Spotify API.
You can read more about the API here: Spotify API Documentation
This is a node.js specific library that you may also want to check out:
thelinmichael's node.js Spotify API Library
The answer provisioned and marked as correct is wrong.
The only way you can extract audio is by using a Windows VM, connect via RDP. Run a script to play Spotify programatically and record the audio.
Since this is the only solution. It is not possible to query data from Spotify.

Can I let the client stream the content from Spotify in a browser based player?

Couldn't find anything on Google about that topic, so I'm asking here.
I had an idea for a web based Spotify player (not like the offical one) and I would like to know if it's possible to let the client (user) stream the content from Spotify instead of my server (app). Would be pretty expensive if my server would have to stream the data and to send it to the client :-/
Thanks!
Unfortunately, there is no web library that you can use for streaming content from Spotify. The closest is the Spotify Play Button but that is a widget that remote controls Spotify from the desktop client or Spotify's web player.
You are limited to use the 30 seconds previews, or use the Android or iOS SDK if you were to build a mobile version of your site. The SDKs allow full playback for Spotify premium users.
There is a feature request for fetching full tracks on Spotify's Web API GitHub repo that you can watch or add comments to.

Playing Spotify music and audio simultaneously

I have developed an iOS App which plays music from the users music library simultaneously with audio files which are included in the app. I have hired a developer to make several changes in the app, one of which enables the user to use their "Spotify" playlists instead of their "Music" playlists, if they have a spotify account. He tells me it is impossible for this functionality to work with the Spotify API.
Can someone please help me as I really need this functionality to work??
Thankyou.
This isn't possible with the Web API, however, take a look at CocoaLibSpotify which is a Mac and iOS library that allows you to access a user's Spotify playlists and play tracks.

Is it possible to access the player API form a web interface without registering an app?

I want to use spotify play to integrate with an artist's website. I want to be able to access the player API to play items embedded from spotify as part of a combined playlist.
is this possible?
thanks
Paul
I think you're talking about the Apps API, which is only available inside the Spotify client.
However, the Spotify Play Button might be what you're after.

using Spotify's webAPI in an iOS app

So I'm in the process of developing an iOS app and I wanted to use the Spotify web API for searching and looking up songs in Spotify. However, I can't really tell if that is how to do it or if there would be better ways to do it and wanted to clarify before I began. Thanks in advance!
If you'd like the use the Web API, it works just the same as any other JSON REST API, so a lot of the tutorials out there for doing that on iOS will help you just fine. For converting between JSON and Objective-C data structures, newer iOS versions have NSJSONSerialization, otherwise I can recommend the open-source TouchJSON.
Also, you might want to look at CocoaLibSpotify, which is an Objective-C library for interacting with the Spotify service in a much more integrated way than the Web API — including music streaming. However, it does require a Spotify user be logged in to use.

Resources