* <tr><td>{@link #KEY_FLAC_COMPRESSION_LEVEL}</td><td>Integer</td><td><b>encoder-only</b>, optional, if content is FLAC audio, specifies the desired compression level.</td></tr>
* </table>
*
* Subtitle formats have the following keys:
* <table>
* <tr><td>{@link #KEY_MIME}</td><td>String</td><td>The type of the format.</td></tr>
* <tr><td>{@link #KEY_LANGUAGE}</td><td>String</td><td>The language of the content.</td></tr>
* </table>
*/
publicfinalclassMediaFormat{
privateMap<String,Object>mMap;
@@ -67,6 +72,12 @@ public final class MediaFormat {
*/
publicstaticfinalStringKEY_MIME="mime";
/**
* A key describing the language of the content.
* The associated value is a string.
*/
publicstaticfinalStringKEY_LANGUAGE="language";
/**
* A key describing the sample rate of an audio format.
* The associated value is an integer
@@ -276,6 +287,23 @@ public final class MediaFormat {
returnformat;
}
/**
* Creates a minimal subtitle format.
* @param mime The mime type of the content.
* @param language The language of the content. Specify "und" if language
* information is only included in the content (similarly, if there