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

Commit af5473ee authored by Marco Nelissen's avatar Marco Nelissen Committed by Android (Google) Code Review
Browse files

Merge "Add support for the "compilation" tag in mp3, mp4 and ogg, and also add...

Merge "Add support for the "compilation" tag in mp3, mp4 and ogg, and also add support for two common ways of specifying album artist in ogg files. b/3311831" into honeycomb
parents c43d13f4 ee35aff7
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -1027,6 +1027,13 @@ public final class MediaStore {
             */
            public static final String ALBUM_ARTIST = "album_artist";

            /**
             * Whether the song is part of a compilation
             * <P>Type: TEXT</P>
             * @hide
             */
            public static final String COMPILATION = "compilation";

            /**
             * A non human readable key calculated from the ARTIST, used for
             * searching, sorting and grouping
+1 −0
Original line number Diff line number Diff line
@@ -56,6 +56,7 @@ enum {
    METADATA_KEY_MIMETYPE        = 22,
    METADATA_KEY_DISC_NUMBER     = 23,
    METADATA_KEY_ALBUMARTIST     = 24,
    METADATA_KEY_COMPILATION     = 25,
    // Add more here...
};

+1 −0
Original line number Diff line number Diff line
@@ -80,6 +80,7 @@ enum {
    kKeyDiscNumber        = 'dnum',  // cstring
    kKeyDate              = 'date',  // cstring
    kKeyWriter            = 'writ',  // cstring
    kKeyCompilation       = 'cpil',  // cstring
    kKeyTimeScale         = 'tmsl',  // int32_t

    // video profile and level
+1 −0
Original line number Diff line number Diff line
@@ -345,5 +345,6 @@ public class MediaMetadataRetriever
    public static final int METADATA_KEY_MIMETYPE        = 22;
    public static final int METADATA_KEY_DISCNUMBER      = 23;
    public static final int METADATA_KEY_ALBUMARTIST     = 24;
    public static final int METADATA_KEY_COMPILATION     = 25;
    // Add more here...
}
+1 −0
Original line number Diff line number Diff line
@@ -614,6 +614,7 @@ sp<MetaData> MP3Extractor::getMetaData() {
        { kKeyAuthor, "TXT", "TEXT" },
        { kKeyCDTrackNumber, "TRK", "TRCK" },
        { kKeyDiscNumber, "TPA", "TPOS" },
        { kKeyCompilation, "TCP", "TCMP" },
    };
    static const size_t kNumMapEntries = sizeof(kMap) / sizeof(kMap[0]);

Loading