<?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 libspotify music_delivery is not called in Android</title>
    <link>https://community.spotify.com/t5/Android/libspotify-music-delivery-is-not-called/m-p/757663#M27198</link>
    <description>&lt;P&gt;I am integrating libspotify with an android app using ndk and I am able to create session, login and successfully load a track. However after the track is loaded (I have te track name and duration) and I call&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;sp_session_player_play with result of SP_ERROR_OK, the music_delivery callback is not getting triggered and no music is audible on the device.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;As I understand it I am supposed to use music_delivery callback to actually output the music on the device.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;I am handling&amp;nbsp;notify_main_thread callback and dispatching it the android app main thread for calling sp_process_events()&lt;/SPAN&gt;&lt;STRONG style="line-height: 1.2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;I don't either get&amp;nbsp;get_audio_buffer_stats either. Here is some of the debug output (I have limited the timeout to 5sec otherwise I would have to wait 5 minutes to process events after login):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;04-17 16:05:18.692: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:18.692: I/DRPSpotify(9765): processEventsProc; next timeout: 5000&lt;BR /&gt;04-17 16:05:25.332: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:25.332: I/DRPSpotify(9765): processEventsProc; next timeout: 5000&lt;BR /&gt;04-17 16:05:25.512: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:25.512: I/DRPSpotifyListener(9765): 20:05:25.518 I [ap:1752] Connecting to AP ap.spotify.com:4070&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.734 I [network.cpp:438] Connecting to 193.182.8.48:4070&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 E [ap:1694] AP Socket Error: Connection refused (111)&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 E [ap:3915] Connection error: 101&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 I [ap:1752] Connecting to AP ap.spotify.com:443&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 I [network.cpp:438] Connecting to 193.182.8.48:443&lt;BR /&gt;04-17 16:05:25.752: I/DRPSpotifyListener(9765): 20:05:25.761 I [ap:1226] Connected to AP: 193.182.8.48:443&lt;BR /&gt;04-17 16:05:30.342: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:30.352: I/DRPSpotify(9765): processEventsProc; next timeout: 5000&lt;BR /&gt;04-17 16:05:30.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:30.492: I/DRPSpotify(9765): processEventsProc; next timeout: 145&lt;BR /&gt;04-17 16:05:30.502: I/DRP DropSpotify(9765): Login Success&lt;BR /&gt;04-17 16:05:33.512: I/DRP DropSpotify(9765): Load track: spotify:track:0iEtarjbAWn1SrxEcgy8fd&lt;BR /&gt;04-17 16:05:33.512: I/DRP DropSpotify(9765): Resource not loaded yet&lt;BR /&gt;04-17 16:05:35.342: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.352: I/DRPSpotify(9765): processEventsProc; next timeout: 144&lt;BR /&gt;04-17 16:05:35.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.362: I/DRPSpotify(9765): processEventsProc; next timeout: 4&lt;BR /&gt;04-17 16:05:35.362: I/DRPSpotify(9765): processEventsProc; next timeout: 4&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): processEventsProc; next timeout: 853&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): processEventsProc; next timeout: 853&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): processEventsProc; next timeout: 854&lt;BR /&gt;04-17 16:05:36.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:36.352: I/DRPSpotify(9765): processEventsProc; next timeout: 8&lt;BR /&gt;04-17 16:05:36.352: I/DRPSpotify(9765): processEventsProc; next timeout: 6&lt;BR /&gt;04-17 16:05:36.352: I/DRP DropSpotify(9765): Loaded Track: Angel - Guitar Version&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;lt;called sp_session_player_play but no callbacks are invoked&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 Apr 2014 20:08:46 GMT</pubDate>
    <dc:creator>farid_z</dc:creator>
    <dc:date>2014-04-17T20:08:46Z</dc:date>
    <item>
      <title>libspotify music_delivery is not called</title>
      <link>https://community.spotify.com/t5/Android/libspotify-music-delivery-is-not-called/m-p/757663#M27198</link>
      <description>&lt;P&gt;I am integrating libspotify with an android app using ndk and I am able to create session, login and successfully load a track. However after the track is loaded (I have te track name and duration) and I call&amp;nbsp;&lt;SPAN style="line-height: 1.2;"&gt;sp_session_player_play with result of SP_ERROR_OK, the music_delivery callback is not getting triggered and no music is audible on the device.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;As I understand it I am supposed to use music_delivery callback to actually output the music on the device.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;I am handling&amp;nbsp;notify_main_thread callback and dispatching it the android app main thread for calling sp_process_events()&lt;/SPAN&gt;&lt;STRONG style="line-height: 1.2;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;I don't either get&amp;nbsp;get_audio_buffer_stats either. Here is some of the debug output (I have limited the timeout to 5sec otherwise I would have to wait 5 minutes to process events after login):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;04-17 16:05:18.692: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:18.692: I/DRPSpotify(9765): processEventsProc; next timeout: 5000&lt;BR /&gt;04-17 16:05:25.332: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:25.332: I/DRPSpotify(9765): processEventsProc; next timeout: 5000&lt;BR /&gt;04-17 16:05:25.512: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:25.512: I/DRPSpotifyListener(9765): 20:05:25.518 I [ap:1752] Connecting to AP ap.spotify.com:4070&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.734 I [network.cpp:438] Connecting to 193.182.8.48:4070&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 E [ap:1694] AP Socket Error: Connection refused (111)&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 E [ap:3915] Connection error: 101&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 I [ap:1752] Connecting to AP ap.spotify.com:443&lt;BR /&gt;04-17 16:05:25.732: I/DRPSpotifyListener(9765): 20:05:25.742 I [network.cpp:438] Connecting to 193.182.8.48:443&lt;BR /&gt;04-17 16:05:25.752: I/DRPSpotifyListener(9765): 20:05:25.761 I [ap:1226] Connected to AP: 193.182.8.48:443&lt;BR /&gt;04-17 16:05:30.342: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:30.352: I/DRPSpotify(9765): processEventsProc; next timeout: 5000&lt;BR /&gt;04-17 16:05:30.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:30.492: I/DRPSpotify(9765): processEventsProc; next timeout: 145&lt;BR /&gt;04-17 16:05:30.502: I/DRP DropSpotify(9765): Login Success&lt;BR /&gt;04-17 16:05:33.512: I/DRP DropSpotify(9765): Load track: spotify:track:0iEtarjbAWn1SrxEcgy8fd&lt;BR /&gt;04-17 16:05:33.512: I/DRP DropSpotify(9765): Resource not loaded yet&lt;BR /&gt;04-17 16:05:35.342: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.352: I/DRPSpotify(9765): processEventsProc; next timeout: 144&lt;BR /&gt;04-17 16:05:35.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.362: I/DRPSpotify(9765): processEventsProc; next timeout: 4&lt;BR /&gt;04-17 16:05:35.362: I/DRPSpotify(9765): processEventsProc; next timeout: 4&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): processEventsProc; next timeout: 853&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): processEventsProc; next timeout: 853&lt;BR /&gt;04-17 16:05:35.492: I/DRPSpotify(9765): processEventsProc; next timeout: 854&lt;BR /&gt;04-17 16:05:36.352: I/DRPSpotify(9765): onNotifyMainThread main thread&lt;BR /&gt;04-17 16:05:36.352: I/DRPSpotify(9765): processEventsProc; next timeout: 8&lt;BR /&gt;04-17 16:05:36.352: I/DRPSpotify(9765): processEventsProc; next timeout: 6&lt;BR /&gt;04-17 16:05:36.352: I/DRP DropSpotify(9765): Loaded Track: Angel - Guitar Version&lt;/P&gt;
&lt;P&gt;&lt;SPAN style="line-height: 1.2;"&gt;&amp;lt;called sp_session_player_play but no callbacks are invoked&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:08:46 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Android/libspotify-music-delivery-is-not-called/m-p/757663#M27198</guid>
      <dc:creator>farid_z</dc:creator>
      <dc:date>2014-04-17T20:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: libspotify music_delivery is not called</title>
      <link>https://community.spotify.com/t5/Android/libspotify-music-delivery-is-not-called/m-p/757695#M27199</link>
      <description>&lt;P&gt;This community is aimed more at end users &lt;a href="https://community.spotify.com/t5/user/viewprofilepage/user-id/720683"&gt;@farid_z&lt;/a&gt;&amp;nbsp;. Check out &lt;A href="https://developer.spotify.com/support/" target="_self"&gt;this page&lt;/A&gt; for developer support options.&lt;/P&gt;</description>
      <pubDate>Thu, 17 Apr 2014 20:27:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Android/libspotify-music-delivery-is-not-called/m-p/757695#M27199</guid>
      <dc:creator>Joe</dc:creator>
      <dc:date>2014-04-17T20:27:57Z</dc:date>
    </item>
  </channel>
</rss>

