<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Spotify should release Android AudioFocus when playback stopped in Android</title>
    <link>https://community.spotify.com/t5/Android/Spotify-should-release-Android-AudioFocus-when-playback-stopped/m-p/1460274#M66773</link>
    <description>&lt;P&gt;fixed on Spotify v0.9.3.3 on Miami STB,&lt;/P&gt;&lt;P&gt;now the experience is really great, thank you guys &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 03 Oct 2016 09:59:43 GMT</pubDate>
    <dc:creator>quentinthib</dc:creator>
    <dc:date>2016-10-03T09:59:43Z</dc:date>
    <item>
      <title>Spotify should release Android AudioFocus when playback stopped</title>
      <link>https://community.spotify.com/t5/Android/Spotify-should-release-Android-AudioFocus-when-playback-stopped/m-p/1412258#M63552</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am a developper working on AndroidTV, I noticed an incorrect Spotify behavior when playing Spotify in background, controlled by SpotifyConnect&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I installed latest Spotify on my iPhone&lt;/P&gt;&lt;P&gt;I installed latest Spotify on my BboxMiami ( AndroidTV )&lt;/P&gt;&lt;P&gt;I login with my premium account on both devices.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I watched LiveTV stream using our own TV Application.&lt;/P&gt;&lt;P&gt;Then I used Spotify on my iPhone to start a music on my AndroidTV&lt;/P&gt;&lt;P&gt;Spotify on AndroidTV correctly took the AudioFocus to interrupt the LiveTV stream to play music.&lt;/P&gt;&lt;P&gt;But then if I stop music playback from my iPhone remote, the Spotify's music stops, but my LiveTV playback is not resumed.&lt;/P&gt;&lt;P&gt;I investigated Android and re-coded test application to reproduce the problem ( I can share it to Spotify team ), and I found the root cause :&lt;/P&gt;&lt;P&gt;- when music content is stopped in Spotify, spotify forgot to call this android method :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Abandon audio focus. Causes the previous focus owner, if any, to receive focus.&lt;BR /&gt;int abandonAudioFocus (&lt;A href="https://developer.android.com/reference/android/media/AudioManager.OnAudioFocusChangeListener.html" target="_blank"&gt;AudioManager.OnAudioFocusChangeListener&lt;/A&gt; l)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can find more details here :&lt;/P&gt;&lt;P&gt;&lt;A href="https://developer.android.com/training/managing-audio/audio-focus.html" target="_blank"&gt;https://developer.android.com/training/managing-audio/audio-focus.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It would be great that spotify release the audio focus if it is not required to play music, that way other android application can get it back automatically, as expected by android.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;best regards&lt;/P&gt;&lt;P&gt;Quentin Thiberville&lt;/P&gt;</description>
      <pubDate>Fri, 05 Aug 2016 10:43:16 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Android/Spotify-should-release-Android-AudioFocus-when-playback-stopped/m-p/1412258#M63552</guid>
      <dc:creator>quentinthib</dc:creator>
      <dc:date>2016-08-05T10:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Spotify should release Android AudioFocus when playback stopped</title>
      <link>https://community.spotify.com/t5/Android/Spotify-should-release-Android-AudioFocus-when-playback-stopped/m-p/1460274#M66773</link>
      <description>&lt;P&gt;fixed on Spotify v0.9.3.3 on Miami STB,&lt;/P&gt;&lt;P&gt;now the experience is really great, thank you guys &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 03 Oct 2016 09:59:43 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Android/Spotify-should-release-Android-AudioFocus-when-playback-stopped/m-p/1460274#M66773</guid>
      <dc:creator>quentinthib</dc:creator>
      <dc:date>2016-10-03T09:59:43Z</dc:date>
    </item>
  </channel>
</rss>

