Skip to content

Commit c8c5e98

Browse files
theandi666Android (Google) Code Review
authored andcommitted
Merge "Document some of the more common mimetypes to be used when instantiating" into jb-dev
2 parents e9b4b3e + 68b1a6e commit c8c5e98

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

media/java/android/media/MediaCodec.java

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,22 @@ public void set(
159159

160160
/**
161161
* Instantiate a decoder supporting input data of the given mime type.
162+
*
163+
* The following is a partial list of defined mime types and their semantics:
164+
* <ul>
165+
* <li>"video/x-vnd.on2.vp8" - VPX video (i.e. video in .webm)
166+
* <li>"video/avc" - H.264/AVC video
167+
* <li>"video/mp4v-es" - MPEG4 video
168+
* <li>"video/3gpp" - H.263 video
169+
* <li>"audio/3gpp" - AMR narrowband audio
170+
* <li>"audio/amr-wb" - AMR wideband audio
171+
* <li>"audio/mpeg" - MPEG1/2 audio layer III
172+
* <li>"audio/mp4a-latm" - AAC audio
173+
* <li>"audio/vorbis" - vorbis audio
174+
* <li>"audio/g711-alaw" - G.711 alaw audio
175+
* <li>"audio/g711-mlaw" - G.711 ulaw audio
176+
* </ul>
177+
*
162178
* @param type The mime type of the input data.
163179
*/
164180
public static MediaCodec createDecoderByType(String type) {

0 commit comments

Comments
 (0)