From ee9052ad3dc88bf7a8516a96929909bfec58b01c Mon Sep 17 00:00:00 2001 From: Alan Nelson Date: Thu, 11 Jul 2019 00:48:28 -0500 Subject: [PATCH] Add title to additional metadata object --- .../schabi/newpipe/player/playback/BasePlayerMediaSession.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/schabi/newpipe/player/playback/BasePlayerMediaSession.java b/app/src/main/java/org/schabi/newpipe/player/playback/BasePlayerMediaSession.java index 1415eff09..7b55629b8 100644 --- a/app/src/main/java/org/schabi/newpipe/player/playback/BasePlayerMediaSession.java +++ b/app/src/main/java/org/schabi/newpipe/player/playback/BasePlayerMediaSession.java @@ -58,6 +58,7 @@ public class BasePlayerMediaSession implements MediaSessionCallback { // set additional metadata for A2DP/AVRCP Bundle additionalMetadata = new Bundle(); + additionalMetadata.putString(MediaMetadataCompat.METADATA_KEY_TITLE, item.getTitle()); additionalMetadata.putString(MediaMetadataCompat.METADATA_KEY_ARTIST, item.getUploader()); additionalMetadata.putLong(MediaMetadataCompat.METADATA_KEY_DURATION, item.getDuration() * 1000); additionalMetadata.putLong(MediaMetadataCompat.METADATA_KEY_TRACK_NUMBER, index + 1);