mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2025-04-05 02:07:01 +00:00
Add title to additional metadata object
This commit is contained in:
parent
ccdd450283
commit
ee9052ad3d
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user