diff --git a/media/java/android/media/MediaCodec.java b/media/java/android/media/MediaCodec.java index 1ca96583112e7..d26412789f39e 100644 --- a/media/java/android/media/MediaCodec.java +++ b/media/java/android/media/MediaCodec.java @@ -3188,9 +3188,55 @@ final public class MediaCodec { /** * Returns Analytics/Metrics data about the current content being * - * @return a Bundle containint the set of attributes and values available + * @return a Bundle containing the set of attributes and values available * for the media being handled by this instance of MediaCodec * + *
| Key | + *Type | + *Description | + *
|---|---|---|
| {@code "codec"} | + *String | + *Identifies the particular codec in use | + *
| {@code "mime"} | + *String | + *Mime type of the media being encoded/decoded | + *
| {@code "mode"} | + *String | + *"Audio" or "Video" | + *
| {@code "secure"} | + *Integer | + *Indicates whether the code is operating on secure content and + * may also use capabilities in android.media.MediaCrypto | + *
| {@code "height"} | + *Integer | + *Height (pixels); valid only when mode=video | + *
| {@code "width"} | + *Integer | + *Width (pixels); valid only when mode=video | + *
| {@code "rotation"} | + *Integer | + *rotation (degrees) to orient the video onto the target surface; + * valid only when mode=video. Note there may be additional + * rotations applied when the surface is mapped to the screen. | + *
| Key | + *Type | + *Description | + *
|---|---|---|
| {@code "fmt"} | + *String | + *The container format (which determines the handler) | + *
| {@code "mime"} | + *String | + *Mime type of the container. | + *
| {@code "ntrk"} | + *Integer | + *Number of tracks in the container | + *
| Key | + *Type | + *Description | + *
|---|---|---|
| {@code "video/codec"} | + *String | + *Identifies the video codec in use | + *
| {@code "video/mime"} | + *String | + *Mime type of the video being encoded/decoded | + *
| {@code "audio/codec"} | + *String | + *Identifies the audio codec in use | + *
| {@code "audio/mime"} | + *String | + *Mime type of the audio being encoded/decoded | + *
| {@code "ht"} | + *Integer | + *Height (pixels); valid only when mode=video | + *
| {@code "wid"} | + *Integer | + *Width (pixels); valid only when mode=video | + *
| {@code "frame"} | + *Integer | + *Number of decoded video frames sent to the display | + *
| {@code "dropped"} | + *Integer | + *Number of decoded video frames that were not sent to display. + * These frames were dropped by the player. | + *
| {@code "durationMs"} | + *Integer | + *The length of the media being played (in ms), e.g. "This video lasts for 30000 milliseconds". | + *
| {@code "playingMs"} | + *Integer | + *The time the media has been played (in ms). If you watch a + * 30 second twice through, this will report 60000 ms. | + *