Skip to content

Commit

Permalink
Merge pull request #463 from morckx/more-bluetooth-metadata
Browse files Browse the repository at this point in the history
Provide more metadata for Bluetooth devices
  • Loading branch information
segler-alex authored May 7, 2019
2 parents 0b296cc + 1189c6a commit bef183a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -770,8 +770,10 @@ private void updateNotification(RadioPlayer.PlayState playState) {

if (mediaSession != null) {
final MediaMetadataCompat.Builder builder = new MediaMetadataCompat.Builder();
builder.putString(MediaMetadataCompat.METADATA_KEY_ALBUM, currentStationName);
builder.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, liveInfo.getArtist());
builder.putString(MediaMetadataCompat.METADATA_KEY_TITLE, liveInfo.getTrack());
builder.putBitmap(MediaMetadataCompat.METADATA_KEY_DISPLAY_ICON, radioIcon.getBitmap());
mediaSession.setMetadata(builder.build());
}
break;
Expand Down

0 comments on commit bef183a

Please sign in to comment.