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

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.

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.

How to get an URL for playing full song rather than just preview using Spotify API?

Currently, I am able to play only the Preview version of the song using the song's preview_url from the response object. Is there any way to fetch the entire song?
Playback of full tracks is not supported in the Web API.
If you are making a mobile app, playback is offered through the mobile SDKs, but there is no full playback for web at this time.
Mobile SDKs can be found here:
https://developer.spotify.com/technologies/spotify-ios-sdk/
https://developer.spotify.com/technologies/spotify-android-sdk/

Streaming a Spotify track when using the Web API

I'm not really happy with the Windows Phone Spotify app. I'm looking into developing my own Spotify client using the Web API. It looks like it's not possible to stream a track using the Web API, after receiving the track metadata. Is this conclusion correct? Is there another way to make this work, using the track uri/href/spotify url? Will it become available in Web API in the near future?
Thx Martijn

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.

Resources