<?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 How to play a specified spotify album through the mediasession framework in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-play-a-specified-spotify-album-through-the-mediasession/m-p/6011873#M13555</link>
    <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AAOS&amp;nbsp; Android 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your support and look forward to your reply.&lt;BR /&gt;Environment: AAOS Android 12,Spotify version 4.4.1&lt;BR /&gt;Description:&lt;BR /&gt;I built a mediaApp on AAOS, plugged into Spotify through the MediaSession framework, When I want to by mediaControllerCompat. GetTransportControls () playFromSearch (String query, Bundle extras) to play its specified album, the content of the play is not my specified album&lt;BR /&gt;Question: I want to know if I'm using the wrong interface,the following is my interface call.&lt;BR /&gt;public void playFromSearchAlbum(String album, String artist, String genre) {&lt;BR /&gt;Bundle extras = new Bundle();&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_FOCUS, MediaStore.Audio.Albums.ENTRY_CONTENT_TYPE);&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_ALBUM, album);&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_ARTIST, artist);&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_GENRE, genre);&lt;BR /&gt;mMediaController.getTransportControls().playFromSearch(album, extras);&lt;BR /&gt;}&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 11:49:44 GMT</pubDate>
    <dc:creator>Chase_Yang</dc:creator>
    <dc:date>2024-04-17T11:49:44Z</dc:date>
    <item>
      <title>How to play a specified spotify album through the mediasession framework</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/How-to-play-a-specified-spotify-album-through-the-mediasession/m-p/6011873#M13555</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Plan&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Free&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Country&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Device&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;/&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Operating System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;AAOS&amp;nbsp; Android 12&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My Question or Issue&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for your support and look forward to your reply.&lt;BR /&gt;Environment: AAOS Android 12,Spotify version 4.4.1&lt;BR /&gt;Description:&lt;BR /&gt;I built a mediaApp on AAOS, plugged into Spotify through the MediaSession framework, When I want to by mediaControllerCompat. GetTransportControls () playFromSearch (String query, Bundle extras) to play its specified album, the content of the play is not my specified album&lt;BR /&gt;Question: I want to know if I'm using the wrong interface,the following is my interface call.&lt;BR /&gt;public void playFromSearchAlbum(String album, String artist, String genre) {&lt;BR /&gt;Bundle extras = new Bundle();&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_FOCUS, MediaStore.Audio.Albums.ENTRY_CONTENT_TYPE);&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_ALBUM, album);&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_ARTIST, artist);&lt;BR /&gt;extras.putString(MediaStore.EXTRA_MEDIA_GENRE, genre);&lt;BR /&gt;mMediaController.getTransportControls().playFromSearch(album, extras);&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 11:49:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/How-to-play-a-specified-spotify-album-through-the-mediasession/m-p/6011873#M13555</guid>
      <dc:creator>Chase_Yang</dc:creator>
      <dc:date>2024-04-17T11:49:44Z</dc:date>
    </item>
  </channel>
</rss>

