I am new here and not a coder so please bear with me. I want to trigger of a NFC and start playing Spotify (ideally from a specific playlist).
I can trigger of the NFC and launch spotify with Launch App com.spotify.music . I then have a 10 second delay to make sure everything has settled down.
What I can not do is start playing (or next track etc)
I assume that I should be Broadcasting an Intent to control spotify. The actions I have tried are
android.media.action.MEDIA_PLAY_FROM_SEARCH (With an without a data URI for my preferred playlist)
com.spotify.mobile.android.ui.widget.PLAY
android.media.action.NEXT
Category list is left blank but I have also tried with com.spotify.mobile in this field.
The command executes but not seem to communicate with Spotify. I appreciate this is probably something basic and fundamental but all help is appreciated
Thanks Karl
Spotify launched but does not play
Moderator: Martin
Re: Spotify launched but does not play
Hi,
Action Control Audio Player should work with most players, however I have not tested the action with Spotify.
Use option send to specified app when another player like Play Music is popping up.
Regards,
Martin
Action Control Audio Player should work with most players, however I have not tested the action with Spotify.
Use option send to specified app when another player like Play Music is popping up.
Regards,
Martin
Re: Spotify launched but does not play
Thanks, That worked a treat.
Does anyone have the exact syntax for playing a specific playlist
Thanks again,
Karl
Does anyone have the exact syntax for playing a specific playlist
Thanks again,
Karl
Re: Spotify launched but does not play
It's easiest to just make a url of the playlist you want to play. and use the url to both launch the app and load the playlist. You will still need to send the play command
-
- Posts: 7
- Joined: 12 Oct 2018 10:31
Re: Spotify launched but does not play
In this situation, you'd better to download and install Spotify app on your computer again to see whether it could be helpful.
If there is still not working, please have a try of Spotify Converter, which can help you download and convert Spotify files to local computer so that you can don't worry about whether it will happens something wrong anymore.
Besides, please make sure your network connection is OK.
If there is still not working, please have a try of Spotify Converter, which can help you download and convert Spotify files to local computer so that you can don't worry about whether it will happens something wrong anymore.
Besides, please make sure your network connection is OK.
-
- Posts: 19
- Joined: 20 Jul 2016 09:32
Re: Spotify launched but does not play
Hi,Karl wrote:Thanks, That worked a treat.
Does anyone have the exact syntax for playing a specific playlist
Thanks again,
Karl
Did that anyone? I tried with Open URL in browser, but it doesn't play the named playlist. It starts the last playlist, not the parameter one...
Thank you