{"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":3,"created_at":"2016-03-07T00:01:12Z","updated_at":"2016-03-26T16:35:25Z","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/201886705","html_url":"https://github.com/spotify/android-sdk/issues/204#issuecomment-201886705","issue_url":"https://api.github.com/repos/spotify/android-sdk/issues/204","id":201886705,"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-26T16:35:25Z","updated_at":"2016-03-26T16:35:25Z","body":"Solved this issue.  There is some sample code in the demo activity that shows how to handle network change over. The key is calling\r\n mPlayer.setConnectivityStatus(connectivity);\r\non the player."}}