Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2d509a64 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Define cover art attribute id"

parents 60a49495 48a484e4
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -469,6 +469,10 @@ public class AddressedMediaPlayer {
                            .getString(MediaMetadata.METADATA_KEY_DURATION);
                    break;

                case AvrcpConstants.ATTRID_COVER_ART:
                    Log.e(TAG, "Cover art attribute not supported");
                    break;

                default:
                    Log.e(TAG, "Unknown attribute ID");
            }
+1 −0
Original line number Diff line number Diff line
@@ -90,6 +90,7 @@ final class AvrcpConstants {
    static final int ATTRID_NUM_TRACKS = 0x05;
    static final int ATTRID_GENRE      = 0x06;
    static final int ATTRID_PLAY_TIME  = 0x07;
    static final int ATTRID_COVER_ART  = 0x08;

    /* constants to send in Track change response */
    static final byte NO_TRACK_SELECTED = (byte)0xFF;
+3 −0
Original line number Diff line number Diff line
@@ -628,6 +628,9 @@ class BrowsedMediaPlayer {
                case AvrcpConstants.ATTRID_PLAY_TIME:
                    attrValue = resultItems.get(itemIndex).getDescription().getExtras()
                            .getString(MediaMetadata.METADATA_KEY_DURATION);

                case AvrcpConstants.ATTRID_COVER_ART:
                    Log.e(TAG, "Cover art attribute not supported");
                    break;

                default: