You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my application, I am using MPMusicPlayerController.systemMusicPlayer for the playing song of Apple music, it's working fine. But when I play back Spotify track using playSpotifyURI it's not working. I have checked logs but not showing error anywhere.
Scenario
Step 1. Play track using playSpotifyURI. It is playing fine
SPTAudioStreamingController.sharedInstance().playSpotifyURI(itemID, startingWith: 0, startingWithPosition: 0) { error in
if error != nil {
print("*** failed to play: \(String(describing: error))")
return
}else{
print("Playing!!")
}
}
Step 2. stop track using.
SPTAudioStreamingController.sharedInstance().setIsPlaying(false, callback: { (error) in
})
Step 3. play apple music song using theMPMusicPlayerController.systemMusicPlayer
if musicPlayerController.playbackState == .playing {
musicPlayerController.stop()
}
Step 5. Play track using playSpotifyURI using below code but it's not playing, I couldn't find any error.
SPTAudioStreamingController.sharedInstance().playSpotifyURI(itemID, startingWith: 0, startingWithPosition: 0) { error in
if error != nil {
print("*** failed to play: \(String(describing: error))")
return
}else{
print("Playing!!")
}
}
Is there any issue of the above code? Please help me to solve an issue. Any help will be appreciated
The text was updated successfully, but these errors were encountered:
Ilesh
changed the title
track not playing after I played stoped MPMusicPlayerController.systemMusicPlayer
spotify track is not playing after I stopped MPMusicPlayerController.systemMusicPlayer track
Oct 11, 2018
In my application, I am using
MPMusicPlayerController.systemMusicPlayer
for the playing song of Apple music, it's working fine. But when I play back Spotify track usingplaySpotifyURI
it's not working. I have checked logs but not showing error anywhere.Scenario
Step 1. Play track using
playSpotifyURI
. It is playing fineStep 2. stop track using.
Step 3. play apple music song using the
MPMusicPlayerController.systemMusicPlayer
Step 4. Stop Apple music song using.
Step 5. Play track using
playSpotifyURI
using below code but it's not playing, I couldn't find any error.Is there any issue of the above code? Please help me to solve an issue. Any help will be appreciated
The text was updated successfully, but these errors were encountered: