Skip to content

Commit 9984833

Browse files
author
James Dong
committed
Added a key to retrieve the rotation angle in MediaMetadataRetriever.java class
o related-to-bug: 6872687 Change-Id: I94569bb8357c39e8309974ede8284b33a996866c
1 parent 3185869 commit 9984833

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

api/current.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11341,6 +11341,7 @@ package android.media {
1134111341
field public static final int METADATA_KEY_NUM_TRACKS = 10; // 0xa
1134211342
field public static final int METADATA_KEY_TITLE = 7; // 0x7
1134311343
field public static final int METADATA_KEY_VIDEO_HEIGHT = 19; // 0x13
11344+
field public static final int METADATA_KEY_VIDEO_ROTATION = 24; // 0x18
1134411345
field public static final int METADATA_KEY_VIDEO_WIDTH = 18; // 0x12
1134511346
field public static final int METADATA_KEY_WRITER = 11; // 0xb
1134611347
field public static final int METADATA_KEY_YEAR = 8; // 0x8

media/java/android/media/MediaMetadataRetriever.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -483,5 +483,10 @@ protected void finalize() throws Throwable {
483483
* of 180 degrees will be retrieved as "-90.0000+180.0000", for instance.
484484
*/
485485
public static final int METADATA_KEY_LOCATION = 23;
486+
/**
487+
* This key retrieves the video rotation angle in degrees, if available.
488+
* The video rotation angle may be 0, 90, 180, or 270 degrees.
489+
*/
490+
public static final int METADATA_KEY_VIDEO_ROTATION = 24;
486491
// Add more here...
487492
}

0 commit comments

Comments
 (0)