Type in your question below and we'll check to see what answers we can find...
Loading article...
Submitting...
If you couldn't find any answers in the previous step then we need to post your question in the community and wait for someone to respond. You'll be notified when that happens.
Simply add some detail to your question and refine the title if needed, choose the relevant category, then post.
Before we can post your question we need you to quickly make an account (or sign in if you already have one).
Don't worry - it's quick and painless! Just click below, and once you're logged in we'll bring you right back here and post your question. We'll remember what you've already typed in so you won't have to do it again.
My goal to setup a play an Audio Stream from Spotify into the Unity Game Engine platform. Unity has an AudioSource that usually likes url based audio files .wav,.mp3,.. but I don't how to feed Spotify End Point data info into the Audiosource.
Its a free account.
End Points work. Oauth is setup correct.
Catagories, Playlists, Tracks data in json format works fine.
I was hoping that somewhere in the Track data - I could could grab a URL and feed it into the AudioSource. Maybe it is not that simple.
Herb Rush
Thanks for getting back to me.
I was hoping for a URL like
http://www.spotify.com/....../greatsong.mp4
or .wav. This is easiest possible case for me.
If that is not how it works can you tell me how it does work. For Example
1) Get Information from Track JSON Object. or where ever
2) do ......
3) Set up the stream
I would guess this is a fairly common question because Spotify is all about music and any one building on the spotify platform would want to stream some music (is my guess).
Thanks for your Help. I am fairly experienced with Unity but new to spotify so the question might come out a bit awkward. Sorry.
one quick question is the music delivered in mp4,wav,.... formats or is it something you unique to spotify???
Herb Rush
Hi,
I really don't need much detail. Just a link describing how to track information to setup a stream of music with spotify. Just a rough description would be extremely helpful.
Thanks
Herb Rush
Thanks for the reply. I am not really interested in Spotify Connect or Browsers.
I am interested in using the End Points to interact with the Spotify Music System directly. So Far I can traverse Catagories, Playlist & Tracks. I can even take the Audio Preview Field in the Track Object (see attached) and play the preview music within Unity. I would like to play the entire song but I do not see a String URL that provides me with that sort of access. It must be there somewhere.
Herb Rush
I am a bit surprised with the lack of a response to the question of "how to setup a stream using the endpoints?".
It would seem to me that any 3rd party application would want to be able to stream stuff from Spotify.
Some of the answers that I was sort of expecting.
1) It cannot be done.
2) We will tell you but you need to sign this agreement.
3) We use proprietary streaming technology to setup streaming.
4) Here is a document and an example to setup a stream to spotify.
But I have not heard anything to help me setup a stream with spotify using the end points. I have the Preview_Url streaming but it is only 30 seconds.
Thanks
Herb Rush
Hey @herbert_rush, sorry for the late reply here!
Let's get this cleared up! Right now, it's not possible to get a direct stream/link to music on Spotify. Music on Spotify is encoded in such a way that the audio files cannot be downloaded/streamed/ripped to protect the right holders.
The only way to stream a track is through the Web Playback API which @_milena mentioned in her reply (or you can use the 30s previews).
Let me know if you have any other questions!
Have a great day,
Hubo
Hey @herbert_rush, thanks for posting your question here!
You can apply for a commercial license when creating your application on the Spotify for Developers Dashboard (Developers > Dashboard > Login > Create An App). There's a link to a form which you need to fill out and then the right folks will take a look! Let me know if you have any other questions.
Have a great day,
Hubo
Can you explain step by step how you did this?
Hi Hubo,
We need your help with a serious problem. We have been a Spotify Developer for quite some time.
We build Voice Controls and Assistants in Unity. Some one on the Forum pointed out that there were restricts on building/using voice controls. We signed up before there was any Voice Control restrictions.
So we have brought this development to a halt immediately until we can clear this up. No sense in investing in an app that we won’t be able to use.
Here is a preview version of the incomplete app.
This is 30 second preview audio app.
Our Questions. You might not be able to answer but maybe you could forward and/or connect us to someone who can.
1) This is sort of a Unique situation. Could we get some sort of exemption for Unity for the Voice Control Restrictions??
We would be happy to work with Spotify using Voice Controls from Dialogflow (Google).
2) Could we use the App as a demo? Not go into production. In this case, we would show it to people but not ever release to the public. Helps show case our talents.
3) Could we make a video using the App? Not ever show it to anyone in person or release it but have it appear in an video that might show up on YouTube or Vimeo.
We are prepared to walk away from the app if we cannot find a resolution.
Thanks for your help and insight.
Herbert Rush
DFAssistants.com
Hi Hubo,
We need your help with a serious problem. We have been a Spotify Developer for quite some time.
We build Voice Controls and Assistants in Unity. Some one on the Forum pointed out that there were restricts on building/using voice controls. We signed up before there was any Voice Control restrictions.
So we have brought this development to a halt immediately until we can clear this up. No sense in investing in an app that we won’t be able to use.
Here is a link to a page with the link.
"dfassistants.com/index.php/spotify-problem"
This is 30 second preview audio app.
Our Questions. You might not be able to answer but maybe you could forward and/or connect us to someone who can.
1) This is sort of a Unique situation. Could we get some sort of exemption for Unity for the Voice Control Restrictions??
We would be happy to work with Spotify using Voice Controls from Dialogflow (Google).
2) Could we use the App as a demo? Not go into production. In this case, we would show it to people but not ever release to the public. Helps show case our talents.
3) Could we make a video using the App? Not ever show it to anyone in person or release it but have it appear in an video that might show up on YouTube or Vimeo.
We are prepared to walk away from the app if we cannot find a resolution.
Thanks for your help and insight. Any help at this point would be appreciated.
Herbert Rush
DFAssistants.com
Founder and CMO
Hey there you, Yeah, you! 😁 Welcome - we're glad you joined the Spotify Community! While you here, let's have a fun game and get…