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

Commit 99848331 authored by James Dong's avatar James Dong
Browse files

Added a key to retrieve the rotation angle in MediaMetadataRetriever.java class

o related-to-bug: 6872687

Change-Id: I94569bb8357c39e8309974ede8284b33a996866c
parent 3185869c
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -11341,6 +11341,7 @@ package android.media {
    field public static final int METADATA_KEY_NUM_TRACKS = 10; // 0xa
    field public static final int METADATA_KEY_TITLE = 7; // 0x7
    field public static final int METADATA_KEY_VIDEO_HEIGHT = 19; // 0x13
    field public static final int METADATA_KEY_VIDEO_ROTATION = 24; // 0x18
    field public static final int METADATA_KEY_VIDEO_WIDTH = 18; // 0x12
    field public static final int METADATA_KEY_WRITER = 11; // 0xb
    field public static final int METADATA_KEY_YEAR = 8; // 0x8
+5 −0
Original line number Diff line number Diff line
@@ -483,5 +483,10 @@ public class MediaMetadataRetriever
     * of 180 degrees will be retrieved as "-90.0000+180.0000", for instance.
     */
    public static final int METADATA_KEY_LOCATION        = 23;
    /**
     * This key retrieves the video rotation angle in degrees, if available.
     * The video rotation angle may be 0, 90, 180, or 270 degrees.
     */
    public static final int METADATA_KEY_VIDEO_ROTATION = 24;
    // Add more here...
}