Spotify launched but does not play
Posted: 15 Jan 2016 09:23
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
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