{"action":"created","issue":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/204","repository_url":"https://api.github.com/repos/spotify/android-sdk","labels_url":"https://api.github.com/repos/spotify/android-sdk/issues/204/labels{/name}","comments_url":"https://api.github.com/repos/spotify/android-sdk/issues/204/comments","events_url":"https://api.github.com/repos/spotify/android-sdk/issues/204/events","html_url":"https://github.com/spotify/android-sdk/issues/204","id":138851906,"number":204,"title":"Re-connecting after network change","user":{"login":"dcamp200","id":1933989,"avatar_url":"https://avatars.githubusercontent.com/u/1933989?v=3","gravatar_id":"","url":"https://api.github.com/users/dcamp200","html_url":"https://github.com/dcamp200","followers_url":"https://api.github.com/users/dcamp200/followers","following_url":"https://api.github.com/users/dcamp200/following{/other_user}","gists_url":"https://api.github.com/users/dcamp200/gists{/gist_id}","starred_url":"https://api.github.com/users/dcamp200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcamp200/subscriptions","organizations_url":"https://api.github.com/users/dcamp200/orgs","repos_url":"https://api.github.com/users/dcamp200/repos","events_url":"https://api.github.com/users/dcamp200/events{/privacy}","received_events_url":"https://api.github.com/users/dcamp200/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-07T00:01:12Z","updated_at":"2016-03-07T12:25:36Z","closed_at":null,"body":"When I am playing a song over wifi and then switch to a mobile (3G) network, I do not see any errors or messages.  From the documentation, \r\nhttps://developer.spotify.com/android-sdk-docs/player/\r\nI was expecting to see a callback onTemporaryError.  The music will continue to play for approximately 2 minutes and then stop.\r\nTo recreate: Start playing a song (over wifi) and then turn wifi off to allow switching to the mobile network.\r\nThe Spotify app seems to handle the switchover without issue.\r\n\r\nWhat is the best way to handle reconnecting? i.e. should I shutdown the player and re initialize it?\r\n\r\nThanks."},"comment":{"url":"https://api.github.com/repos/spotify/android-sdk/issues/comments/193230948","html_url":"https://github.com/spotify/android-sdk/issues/204#issuecomment-193230948","issue_url":"https://api.github.com/repos/spotify/android-sdk/issues/204","id":193230948,"user":{"login":"dcamp200","id":1933989,"avatar_url":"https://avatars.githubusercontent.com/u/1933989?v=3","gravatar_id":"","url":"https://api.github.com/users/dcamp200","html_url":"https://github.com/dcamp200","followers_url":"https://api.github.com/users/dcamp200/followers","following_url":"https://api.github.com/users/dcamp200/following{/other_user}","gists_url":"https://api.github.com/users/dcamp200/gists{/gist_id}","starred_url":"https://api.github.com/users/dcamp200/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcamp200/subscriptions","organizations_url":"https://api.github.com/users/dcamp200/orgs","repos_url":"https://api.github.com/users/dcamp200/repos","events_url":"https://api.github.com/users/dcamp200/events{/privacy}","received_events_url":"https://api.github.com/users/dcamp200/received_events","type":"User","site_admin":false},"created_at":"2016-03-07T12:25:36Z","updated_at":"2016-03-07T12:25:36Z","body":"Thanks Krysanify.  Sounds like you are having the same issue.  With the SDK I can play about 1:50 before it abruptly stops.  With the Spotify app, I let it play into the second song but saw no issues.\r\nI have caching turned off due to issue #148 \r\n\r\nIt appears to be a bug.  I don't seem any callbacks being invoked.  I would think the SDK could recover from a network change.  The callback at least gives you a chance to warn the user that you are switching to the mobile network.\r\n\r\nExiting my app and restarting fixes the problem but is inconvenient for the user.  I also tried creating a new player when the event happens (catching it using CommunicationsManager) but this did not work.\r\n"}}