Skip to content

Commit b198004

Browse files
James DongAndroid (Google) Code Review
authored andcommitted
Merge "Added a key to retrieve the rotation angle in MediaMetadataRetriever.java class" into jb-mr1-dev
2 parents 49771c3 + 9984833 commit b198004

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

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)