I want to put in my app just one PLAY button and when user will press on that button, to play the song directly in Spotify. It will like a controller, so I can switch songs in Spotify from my own app.
Now I created something, but it plays on my own app. Is there any ways to control my music streaming in spotify via my own app?
For example I press "Next song" and it switches in Spotify app to the next song.
I hope I could explain what I want, if not - please ask me
URL Schemes are the only way to communicate between apps. It is not possible to launch non arbitrary apps.
Then you need to use Spotifys API and they do not currently have any support for that.
Related
I'm currenty trying to find out if it's possible to control the music of other apps, e.g. Spotify, within my app. The two solutions I found are:
using the SDK of the specific service (e.g. Spotify SDK)
take over the audio session in my app, but this only allows me to stop/ play the music
I'm trying to find a solution that provides me with pause, play, forward, backward control and access to the title, maybe also the cover. Then I came across the "Sony Headphones Connect" app. It has a page with media control buttons, the title of the current song and is does not require any kind of sing in to Spotify or something else.
Picture is from the app from the App Store, I tested the controls and they work.
So somehow it must be possible, does anyone have an idea how I can achieve my desired result or how the "Sony Headphones Connect" app is handling this issue?
I think I found the answer, the "Sony Headphones Connect" app is controlling the music over bluetooth. So it's not directly possible to control the music of another app.
o/
Configured app, enabled Apple Music subscription, authorized that user in my web app, and whenever I play a song from media queue, I hear only preview playing, not the full song. When I authorize the same way on Apple Music webiste, it plays full song.
I'm developing on localhost, but all cookies and localstorage items are set, so authorization won't pop up after refresh.
Am I missing some magic param I need to pass to API in order to play full song?
Thanks
Lately, I have seen that Waze shows a Spotify's button on top of its map.
I was wondering how does it work?
At first, when you press the Spotify button you are getting redirected to Spotify via an url-scheme (probably spotify://waze?example) then you approve the use and get back with a session (with a waze://) I guess.
So I understand the binding process but how does the Spotify component work inside the Waze app. Let's say I'm pressing the pause button or next song. What's happen?
One thing I have noticed. To resume playing go to the next song or add to favorites they are using some other functionality that I don't recognize
It's two-way integration between the services according to the Waze Official Blog + iOS
Also, Spotify has Spotify iOS SDK which allows you to implement some features in your own apps.
I have not started coding my app but I have an idea and want to see if this part of it is possible. Would it be ok if, given a track ID, I played the song (through MediaPlayer) in the app, even if the user had not bought the song and do not have it in their library?
If not, what would be the best way to play music that anyone (or most people, at least) can listen to as they use my app?
You can play music that:
is in the user's library
or, is embedded in your app
or, is available online where your app can readily access it (assuming reachability etc.)
We're currently testing a music service on a private dev server built using rails. We're using Jplayer for streaming, and everything works well except one issue.
The bug:
If a user opens a browser tab, plays a song, then opens another tab and plays any song, the song in the previous browser will start playing the same song that was just clicked in the new tab.
The desired solution:
We want to force only one instance of a browser playing a song at any given time. So if a user opens a new instance of the site and starts playing a song, the song from the previous instance will automatically stop.
I'm assuming this is a Jplayer issue, but could it be something else?
Any help would be greatly appreciated.
Here's a long shot and very theoretical but here it goes.
I don't think it's Jplayer issue but a missing feature in the Rails web app.
Possibly use a new controller or model which accepts one song at a time to be played? So when the user selects a music to be played, the web app would push the selected music into the new controller/model which Jplayer would be played from. The controller/model would only have the one particular song/track.
Or using request.remote_ip and a method to detect if there's two or more streams of music being streamed to the users computer and to pause the music on the other tabs when the most recent song is being played. Could help if you're also using a JavaScript framework like Backbone.js to implement this.